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

 
 

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

Submitter:  None
Submitted:  Fri 27 Apr 2012 03:06:27 PM UTC
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

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 Files:
   
   
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
  • -email is unavailable- added by oli4 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-04 oli4 Open/ClosedOpen Closed
    2012-08-02 oli4 StatusNone Need Info
    2012-04-27 None Attached File- Added preserve_setuid.patch, #25745

    Back to the top


    Powered by Savane 3.9