problems with mount
I'm having problems with mount. Before I issue a mount command, /mnt/cdrom is of type file_t. Immediately after running mount, /mnt/cdrom is labeled as unlabeled_t. Is that supposed to happen? That causes no end to problems in getting data from a CD in enforcing mode, if I'm correct.
-Ryan
Quoted 5 lines · Ryan Bergauer
I'm having problems with mount. Before I issue a mount command,
/mnt/cdromis of typefile_t. Immediately after running mount,/mnt/cdromis labeled asunlabeled_t. Is that supposed to happen? That causes no end to problems in getting data from a CD in enforcing mode, if I'm correct.
Before you run mount, /mnt/cdrom resolves to an empty mountpoint directory in the root filesystem. After you run mount, /mnt/cdrom resolves to the mounted directory on the CDROM, which is likely using an iso9660 filesystem. There is no labeling information on the CDROM. Naturally, the import of unlabeled information into the system should be rigorously controlled, and you'll need to add permissions if you want to permit it.
The newer genfs_contexts configuration should allow you to assign a particular type to iso9660 filesystems so that you can then grant permissions to that type while still leaving unlabeled_t inaccessible. That isn't in the current release, but will be in the next one.
--
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.