Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401117 - sys-apps/openrc-0.9.8.2 checkpath doesn't respect -m when combined with -o for new directories
Summary: sys-apps/openrc-0.9.8.2 checkpath doesn't respect -m when combined with -o fo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 399185
  Show dependency tree
 
Reported: 2012-01-28 00:38 UTC by Maxim Kammerer
Modified: 2012-01-28 19:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Kammerer 2012-01-28 00:38:40 UTC
The following line:

  /lib/rc/sh/init.sh:	checkpath -d -m 0775 -o root:uucp /run/lock

actually creates

  drwxr-xr-x root:uucp /run/lock

The problem is with checkpath (not some service overriding permissions), as can be verified by testing checkpath elsewhere.

Note that:

1. checkpath -d -m 0775 /run/lock creates drwxrwxr-x
2. For existing directory, mode is set/left correctly (in tests I tried with less/more mode bits and same/different user/group)
3. When correcting both owner and mode, checkpath says only "correcting owner"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-28 19:55:05 UTC
This is already in the tree for 0.9.9, in commit 426b94bd696933a72d8623fa1325b3562096957d