Bug 160897 - Better mechanism is needed for pre-creating folders
Better mechanism is needed for pre-creating folders
Product: Fedora
Classification: Fedora
Component: selinux-policy-strict (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Depends On:
  Show dependency treegraph
Reported: 2005-06-18 03:12 EDT by Ivan Gyurdiev
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-09-18 15:04:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ivan Gyurdiev 2005-06-18 03:12:09 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
We need something that's managed with the package, whose files
we are pre-creating - not with selinux. We need to be doing
creation and relabel at install time, not at login shell time.

Version-Release number of selected component (if applicable):

How reproducible:
Didn't try

Steps to Reproduce:

Additional info:
Comment 1 Ivan Gyurdiev 2005-11-10 11:27:14 EST
This bug refers to the /etc/profile.d/selinux.sh script, which is a (necessary)
hack, that should be eradicated in the long term, and replaced with a per
package solution of some kind.

A related item is the need to pre-create /tmp folders that are not "owned" by a
particular user (like .*-unix). The selinux.sh script does not work for those,
because it's a profile script. Those folders can be erased on a tmpfs /tmp, and
need to be re-created before anything starts using them, mis-setting the
context. This seems to imply that we need a boot time script for selinux as well.
Comment 3 Daniel Walsh 2006-09-18 15:04:38 EDT
restorecond can do this.

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