bugacl - Bugs: bug #47949, root/permissions test assumes...

 
 

bug #47949: root/permissions test assumes permissive umask

Submitted by:  None
Submitted on:  Tue 17 May 2016 06:49:35 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
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.

 

Wed 18 May 2016 02:26:32 AM UTC, comment #1:

Fixed, thanks.

Andreas Gruenbacher <agruen>
Project Administrator
Tue 17 May 2016 06:49:35 PM UTC, original submission:

the root/permissions test can fail if run by a root user with umask 077, because the "d" temporary directory ends up unreadable/unexecutable by bin or daemon.

Fix/workaround:

--- a/test/root/permissions.test
+++ b/test/root/permissions.test
@@ -16,6 +16,7 @@ Cry immediately if we are not running as root.
First, set up a temporary directory and create a regular file with
defined permissions.

+ $ umask 022
$ mkdir d
$ cd d
$ umask 027

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by agruen (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 May 2016 02:26:32 AM UTCagruenStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1