View previous topic :: View next topic |
Author |
Message |
SnEptUne l33t
Joined: 23 Aug 2004 Posts: 656
|
Posted: Wed Oct 13, 2004 7:52 am Post subject: [SELinux] Relabel Filesystem does not work |
|
|
I followed the Gentoo Hardened Handbook to convert my existing Gentoo system for SELinux. However, I could not label my filesystem. I have recompiled my kernel and configured the kernel accordingly. Is there something wrong with my setup?
Those are you error messages that I received when I attempt to "make relabel"
* Relabeling filesystem types: ext2 ext3 xfs
usage: /usr/sbin/setfiles [-dnqvW] [-o filename] spec_file pathname...
usage: /usr/sbin/setfiles -s [-dnqvW] [-o filename ] spec_file
make: *** [relabel] Error 1 _________________ "There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114) |
|
Back to top |
|
|
SnEptUne l33t
Joined: 23 Aug 2004 Posts: 656
|
Posted: Wed Oct 13, 2004 7:58 am Post subject: |
|
|
Nevermind. It is fixed after "reiserfs" is added to following lines in /etc/security/selinux/src/policy/Makefile.
Code: |
checklabels: $(SETFILES)
@$(EINFO) "Checking labels on filesystem types: ext2 ext3 xfs reiserfs"
@$(SETFILES) -v -n $(FC) `mount | grep -v "context=" |awk '/(ext[23]| xfs | reiserfs).*rw/{print $$3}'`
restorelabels: $(SETFILES)
@$(EINFO) "Restoring labels on filesystem types: ext2 ext3 xfs reiserfs"
@$(SETFILES) -v $(FC) `mount | grep -v "context=" | awk '/(ext[23]| xfs| reiserfs).*rw/{print $$3}'`
relabel: $(FC) $(SETFILES)
@$(EINFO) "Relabeling filesystem types: ext2 ext3 xfs reiserfs"
@$(SETFILES) $(FC) `mount | grep -v "context=" | awk '/(ext[23]| xfs | reiserfs).*rw/{print $$3}'`
|
_________________ "There will be more joy in heaven over the tear-bathed face of a repentant sinner than over the white robes of a hundred just men." (LM, 114) |
|
Back to top |
|
|
|