summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2012-04-10 15:59:37 +0000
committerjh <jh@FreeBSD.org>2012-04-10 15:59:37 +0000
commita1ada6f9c66040c707e2f2b0717d8fa572553ad0 (patch)
treef395af4f7a55d38376b42fc0bf4f88ad8de58486 /lib/libc
parent3efe44ddf85973b60312802cf3d09838fa5e7984 (diff)
downloadFreeBSD-src-a1ada6f9c66040c707e2f2b0717d8fa572553ad0.zip
FreeBSD-src-a1ada6f9c66040c707e2f2b0717d8fa572553ad0.tar.gz
- Return EPERM from ufs_setattr() when an user without PRIV_VFS_SYSFLAGS
privilege attempts to toggle SF_SETTABLE flags. - Use the '^' operator in the SF_SNAPSHOT anti-toggling check. Flags are now stored to ip->i_flags in one place after all checks. Submitted by: bde
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/chflags.25
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2
index 79f2fe0..5a47ba1 100644
--- a/lib/libc/sys/chflags.2
+++ b/lib/libc/sys/chflags.2
@@ -28,7 +28,7 @@
.\" @(#)chflags.2 8.3 (Berkeley) 5/2/95
.\" $FreeBSD$
.\"
-.Dd Oct 29, 2010
+.Dd Apr 10, 2012
.Dt CHFLAGS 2
.Os
.Sh NAME
@@ -114,8 +114,7 @@ The
and
.Dv SF_ARCHIVED
flags may only be set or unset by the super-user.
-Attempts to set these flags by non-super-users are rejected, attempts by
-non-superusers to clear flags that are already unset are silently ignored.
+Attempts to toggle these flags by non-super-users are rejected.
These flags may be set at any time, but normally may only be unset when
the system is in single-user mode.
(See
OpenPOWER on IntegriCloud