aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/extattrctl/extattrctl.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2000-04-20 20:32:43 +0000
committerRobert Watson <rwatson@FreeBSD.org>2000-04-20 20:32:43 +0000
commit6c50ada1bdb33cd736ba3be1ea65d5fa6f40e622 (patch)
treeac73e6343d9d837f9623e65c340c90d9f6074a5f /usr.sbin/extattrctl/extattrctl.c
parent2a60effdd8450c12c6f9278d6179520480da61fd (diff)
downloadsrc-6c50ada1bdb33cd736ba3be1ea65d5fa6f40e622.tar.gz
src-6c50ada1bdb33cd736ba3be1ea65d5fa6f40e622.zip
o Update extattrctl.8 to reflect new initattr -p, -r, and -w options.
o Update extattrctl.c to default new attributes to readable and writable only by the kernel and root user. Previously the default was to allow the file owner to directory view and manipulate the attributes, which is probably an inappropriate default.
Notes
Notes: svn path=/head/; revision=59446
Diffstat (limited to 'usr.sbin/extattrctl/extattrctl.c')
-rw-r--r--usr.sbin/extattrctl/extattrctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/extattrctl/extattrctl.c b/usr.sbin/extattrctl/extattrctl.c
index 96a8a181698e..839e563eac00 100644
--- a/usr.sbin/extattrctl/extattrctl.c
+++ b/usr.sbin/extattrctl/extattrctl.c
@@ -111,8 +111,8 @@ initattr(int argc, char *argv[])
char *fs_path = NULL;
char *zero_buf = NULL;
long loop, num_inodes;
- int initattr_rlevel = UFS_EXTATTR_PERM_OWNER;
- int initattr_wlevel = UFS_EXTATTR_PERM_OWNER;
+ int initattr_rlevel = UFS_EXTATTR_PERM_ROOT;
+ int initattr_wlevel = UFS_EXTATTR_PERM_ROOT;
int ch, i, error;
optind = 0;