Skip to contentSkip to conversation

using genfs_context and cramfs

DISCUSSION Debian User 2 participants 2 messages Jul 4, 2002 – Jul 5, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

i can already mount a cramfs_file and it get labeled with "cramfs_t"
i relabeled the directory where i built the cramfs from but when i mount it via loopback. the labels are still cramfs. How do we use the fs image as a root fs then?

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 4 lines · Debian User

i can already mount a cramfs_file and it get labeled with "cramfs_t" i relabeled the directory where i built the cramfs from but when i mount it via loopback. the labels are still cramfs. How do we use the fs image as a root fs then?

You need to fully specify your desired security contexts in the genfs_contexts configuration for cramfs. This will likely be a subset of the portion of the file_contexts configuration for the root filesystem, except that you need to specify pathname prefixes rather than pathname regular expressions.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.