Bug#851143: systemd: doesn't use all the mount options from /etc/fstab when mounting on boot

Michael Biebl biebl at debian.org
Thu Jan 12 15:22:27 GMT 2017


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 at 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 at swssmtp:/tmp# umount /mail
> root at swssmtp:/tmp# mount /mail
> root at 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 at 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 at 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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170112/b5356e81/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list