Am 12.01.2017 um 12:43 schrieb Russell Coker: > Package: systemd > Version: 232-8 > Severity: normal > > When I boot a server that mounts a filesystem via NFS it ignores the context= > mount option to set a SE Linux context of the files. > > What I want is to use the type mail_spool_t for a NFS mounted mail spool > instead of the default nfsd_rw_t (a generic writable NFS filesystem label). > > Script started on Thu 12 Jan 2017 22:36:40 AEDT > root@swssmtp:/tmp# ls -ldZ /mail > drwxr-xr-x. 1 vmail vmail system_u:object_r:nfsd_rw_t:s0 688 Aug 15 23:54 > /mail > root@swssmtp:/tmp# umount /mail > root@swssmtp:/tmp# mount /mail > root@swssmtp:/tmp# ls -ldZ /mail > drwxr-xr-x. 1 vmail vmail system_u:object_r:mail_spool_t:s0 688 Aug 15 23:54 > /mail > root@swssmtp:/tmp# grep mail /etc/fstab > 10.10.10.1:/mailstore /mail nfs > context=system_u:object_r:mail_spool_t:s0 0 0 > root@swssmtp:/tmp# exit >
Could you attach the output of systemctl status mail.mount systemctl show mail.mount -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pkg-systemd-maintainers mailing list Pkg-systemd-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers