mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 23:16:27 -05:00
restrict who can setxattr the pseudo file. closes #64
This commit is contained in:
parent
4ea49fcfbb
commit
4b204b8fba
2 changed files with 16 additions and 11 deletions
|
|
@ -48,10 +48,10 @@ _getattr_controlfile(struct stat &buf)
|
|||
|
||||
buf.st_dev = 0;
|
||||
buf.st_ino = 0;
|
||||
buf.st_mode = (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
|
||||
buf.st_mode = (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH);
|
||||
buf.st_nlink = 1;
|
||||
buf.st_uid = ::geteuid();
|
||||
buf.st_gid = ::getegid();
|
||||
buf.st_uid = ::getuid();
|
||||
buf.st_gid = ::getgid();
|
||||
buf.st_rdev = 0;
|
||||
buf.st_size = 0;
|
||||
buf.st_blksize = 1024;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue