Bug 5147 - deal with restrictive umask
Summary: deal with restrictive umask
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-15 11:07 CEST by Pierre Ossman
Modified: 2014-05-20 10:41 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2014-05-15 11:07:48 CEST
We need to make sure that ThinLinc can operate properly even when the umask is set to something restrictive for our services. We did a quick fix for bug 4826, bug 4580 and bug 5034 in r28979 that we probably want to clean up. Our mkhomedirs function is also broken with regard to umask. Probably want to see if there is something else affected.

There are two main lines of fixing this:

 a) Set a nice umask during startup. Avoids having to fix each and every place. Not sure what risk there is of inheriting this though. PulseAudio uses this approach.

 b) Compensate where relevant by changing umask or explicitly call chmod(). sshd and gdm uses this approach.

Note You need to log in before you can comment on or make changes to this bug.