Bug#851143: systemd: doesn't use all the mount options from /etc/fstab when mounting on boot
Russell Coker
russell at coker.com.au
Thu Jan 12 11:43:44 GMT 2017
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
Script done on Thu 12 Jan 2017 22:37:05 AEDT
-- Package-specific info:
-- System Information:
Debian Release: stretch/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.8.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii adduser 3.115
ii libacl1 2.2.52-3
ii libapparmor1 2.10.95-8
ii libaudit1 1:2.6.7-1
ii libblkid1 2.29-1
ii libc6 2.24-8
ii libcap2 1:2.25-1
ii libcryptsetup4 2:1.7.3-3
ii libgcrypt20 1.7.5-2
ii libgpg-error0 1.26-1
ii libidn11 1.33-1
ii libip4tc0 1.6.0+snapshot20161117-4
ii libkmod2 23-2
ii liblz4-1 0.0~r131-2
ii liblzma5 5.2.2-1.2
ii libmount1 2.29-1
ii libpam0g 1.1.8-3.4
ii libseccomp2 2.3.1-2.1
ii libselinux1 2.6-3
ii libsystemd0 232-8
ii mount 2.29-1
ii util-linux 2.29-1
Versions of packages systemd recommends:
ii dbus 1.10.14-1
pn libpam-systemd <none>
Versions of packages systemd suggests:
pn policykit-1 <none>
pn systemd-container <none>
pn systemd-ui <none>
Versions of packages systemd is related to:
pn dracut <none>
pn initramfs-tools <none>
ii udev 232-8
-- Configuration Files:
/etc/systemd/timesyncd.conf changed [not included]
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list