From 41ecf3565f5dc186f6f0476521c91422e73680c1 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sun, 20 Feb 2000 01:10:36 +0000 Subject: Disable chflags() from within jail() so that root within jail can't make a mess in securelevel environments. Results in one warning during /etc/rc as it attempts to remove file flags, but this is harmless. Approved by: High Lord Hubbard --- sys/ufs/ufs/ufs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 9616b3792bd8..56968953ae46 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -444,7 +444,7 @@ ufs_setattr(ap) if (vp->v_mount->mnt_flag & MNT_RDONLY) return (EROFS); if (cred->cr_uid != ip->i_uid && - (error = suser_xxx(cred, p, PRISON_ROOT))) + (error = suser(p))) return (error); if (cred->cr_uid == 0) { if ((ip->i_flags -- cgit v1.3