ecryptfs should integrate with selinux/apparmor to add MAC to filesystem access
Bug #278290 reported by
Dustin Kirkland
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
It would be nice if SELinux and/or AppArmor could be used in conjunction with eCryptfs to apply Mandatory Access Controls on ecryptfs mounted filesystems.
In this way, automated backups run by the root user would be prevented from accessing the mounted data in the clear.
:-Dustin
Changed in ecryptfs: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
The Fedora 9 selinux- policy- 3.3.1-95. fc9.noarch package carries a patch against the upstream reference policy to make all eCryptfs mount points inherit the 'system_ u:object_ r:ecryptfs_ t:s0' label. All files created inside of the mount point get that label, too. I don't know if other distros are doing something similar, but it would be helpful if that patch was included in the upstream reference policy.
Once the eCryptfs mount point is labeled correctly, it would be up to the policy for the backup program (or it could be done in a local policy module) to deny the backup program's access to directories with the ecryptfs_t type. The labels on the files in the lower filesystem are preserved, so there are really no changes that need to be made to eCryptfs.