Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SELinux] Relabel Filesystem does not work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Wed Oct 13, 2004 7:52 am    Post subject: [SELinux] Relabel Filesystem does not work Reply with quote

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
View user's profile Send private message
SnEptUne
l33t
l33t


Joined: 23 Aug 2004
Posts: 656

PostPosted: Wed Oct 13, 2004 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum