It seems my old account was deleted so have to use this one :o
I have an auxillary drive mounted to stored web files on and use the following /etc/fstab:
QUOTE
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/bckup /bckup ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs rw,noexec,nosuid,nodev 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/usr/tmpDSK /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0
/tmp /var/tmp ext3 rw,noexec,nosuid,nodev,bind 0 0
/dev/sdb1 /archive ext3 defaults 1 2
/dev/hdc /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
LABEL=/ / ext3 defaults 1 1
LABEL=/bckup /bckup ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs rw,noexec,nosuid,nodev 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/usr/tmpDSK /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0
/tmp /var/tmp ext3 rw,noexec,nosuid,nodev,bind 0 0
/dev/sdb1 /archive ext3 defaults 1 2
/dev/hdc /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
The new drive is:
QUOTE
/dev/sdb1 /archive ext3 defaults 1 2
The /dev/sdb1 is mounted at /archive (which is great) however this was getting denials for httpd reading and writing to the mount. The only way I got this to work was to manually mount it with the following:
QUOTE
mount -o context=system_u:object_r:var_t /dev/sdb1 /archive
The current syntax in the fstab does not have any context and so will mount with xattr context.
Is it possible to update the fstab with a context?
Many thanks for any pointers!