diff options
author | netblue30 <netblue30@yahoo.com> | 2017-04-24 09:31:31 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-04-24 09:31:31 -0400 |
commit | bff77f44afcdf43e69053dc2a3e4b45514810952 (patch) | |
tree | e07632aff6a3bd24d609a3bdf8e306788698fbe1 /src | |
parent | fcopy - fix trailing char (diff) | |
download | firejail-bff77f44afcdf43e69053dc2a3e4b45514810952.tar.gz firejail-bff77f44afcdf43e69053dc2a3e4b45514810952.tar.zst firejail-bff77f44afcdf43e69053dc2a3e4b45514810952.zip |
fcopy - no checking for group in order to fix files such as /usr/bin/mutt_dotlock
Diffstat (limited to 'src')
-rw-r--r-- | src/fcopy/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c index b9d2c19a8..da5ade428 100644 --- a/src/fcopy/main.c +++ b/src/fcopy/main.c | |||
@@ -200,7 +200,8 @@ static char *check(const char *src) { | |||
200 | goto errexit; | 200 | goto errexit; |
201 | 201 | ||
202 | // check uid | 202 | // check uid |
203 | if (s.st_uid != getuid() || s.st_gid != getgid()) | 203 | // checking gid will fail for files with a larger group such as /usr/bin/mutt_dotlock |
204 | if (s.st_uid != getuid()/* || s.st_gid != getgid()*/) | ||
204 | goto errexit; | 205 | goto errexit; |
205 | 206 | ||
206 | // dir, link, regular file | 207 | // dir, link, regular file |