bugJailkit - Bugs: bug #36320, [PATCH] Preserving binary...

 
 

bug #36320: [PATCH] Preserving binary setuid/setgid bits

Submitted by:  None
Submitted on:  Fri 27 Apr 2012 03:06:27 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 02 Aug 2012 08:57:46 PM UTC, comment #2:

the line

mode = (mode & ~stat.S_ISUID) & ~stat.S_ISGID

that removes the setuid bit from the mode is still there, have you tested that this patch works?

Olivier Sessink <oli4>
Project Administrator
Sat 07 Jul 2012 07:41:53 AM UTC, comment #1:

thanks. I currently have little time, so it will take a few weeks before I commit this.

Olivier Sessink <oli4>
Project Administrator
Fri 27 Apr 2012 03:06:27 PM UTC, original submission:

The attached patch add an entry in jk_init.ini and an option to jk_cp to specify binaries you want to preserve setuid/setgid bits

jk_init.ini:
[ping]
comment = Ping program
paths_w_setuid = /bin/ping

$> jk_cp --setuid /path/to/jail /bin/ping

Guillaume Bour <gbour@uperto.com>

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #25745:  preserve_setuid.patch added by None (10KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by oli4 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 Nov 2015 09:45:00 PM UTColi4Open/ClosedOpen=>Closed
    Thu 02 Aug 2012 08:57:46 PM UTColi4StatusNone=>Need Info
    Fri 27 Apr 2012 03:06:27 PM UTCNoneAttached File-=>Added preserve_setuid.patch, #25745

    Back to the top


    Powered by Savane 3.1-cleanup1