Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2007 14:21:58 +0200
From:      Thomas <freebsdlists@bsdunix.ch>
To:        freebsd-stable@freebsd.org
Subject:   mount_nullfs in jail, set times error on symlinked files
Message-ID:  <1177503718.2974.17.camel@bert.mlan.solnet.ch>

next in thread | raw e-mail | index | archive | help
Hi

I jailed my ftp server. Rsync processes inside my jail syncing remote
files. I receive a lot of errors like:

rsync: failed to set times on
"/usr/local/data/ftp/mirror/x.org/pub/X11R7.0/doc/html/XF86VidModeGetPermissions.3.html": Operation not permitted (1)

All set times error are triggered by symlinked files:
/usr/local/data/ftp/mirror/x.org/pub/X11R7.0/doc/html/XF86VidModeGetPermissions.3.html -> XF86VidMode.3.html

Is this a jail limitation?


About my system:
6.2-STABLE #8: Mon Apr 23 15:17:16 UTC 2007 (I386)

kern.securelevel is set to -1 in the host and jail system.
 
My host system mounts /backup/jail_ftp/ftp
to /jail/ftp_server/usr/local/data/ftp which is inside my jail.

mount shows:
/backup/jail_ftp/ftp on /jail/ftp_server/usr/local/data/ftp (nullfs,
local)

/backup/jail_ftp/ftp has chmod 777

my host rc.conf looks like:
jail_ftp_devfs_enable="YES" 
jail_ftp_devfs_ruleset="devfsrules_jail" #rulset 4 applied
jail_ftp_mount_enable="YES"

fstab.ftp:
/usr/ports  /jail/ftp_server/usr/ports nullfs rw 1 1
/backup/jail_ftp/ftp  /jail/ftp_server/usr/local/data/ftp nullfs 1 1

sysctl.conf:
security.jail.set_hostname_allowed: 1
security.jail.socket_unixiproute_only: 1
security.jail.sysvipc_allowed: 1
security.jail.enforce_statfs: 1
security.jail.allow_raw_sockets: 1
security.jail.chflags_allowed: 1
security.jail.jailed_sockets_first: 1
kern.securelevel: -1

Cheers,
Tom Vogt




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1177503718.2974.17.camel>