using genfs_context and cramfs
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.
Quoted 4 lines · Debian User
i can already mount a
cramfs_fileand 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.