gvisor/pkg/sentry
Ayush Ranjan f2c881f684 [vfs] Make sticky bit check consistent with Linux.
Our implementation of vfs.CheckDeleteSticky was not consistent with Linux,
specifically not consistent with fs/linux.h:check_sticky().

One of the biggest differences was that the vfs implementation did not
allow the owner of the sticky directory to delete files inside it that belonged
to other users.

This change makes our implementation consistent with Linux.

Also adds an integration test to check for this. This bug is also present in
VFS1.

Updates #3027

PiperOrigin-RevId: 355557425
2021-02-03 22:44:51 -08:00
..
arch Internal change. 2020-12-15 16:51:35 -08:00
contexttest Pass overlay credentials via context in copy up. 2020-08-21 15:06:09 -07:00
control Stub out basic `runsc events --stat` CPU functionality 2021-02-02 12:47:23 -08:00
device Add more information to panic when device ID don't match 2020-08-18 18:52:24 -07:00
devices Remove ARP address workaround 2020-11-16 14:36:10 -08:00
fdimport Remove existing nogo exceptions. 2020-12-11 12:06:49 -08:00
fs Change tcpip.Error to an interface 2021-01-28 17:59:58 -08:00
fsbridge [vfs2] Don't leak reference from Mountnamespace.Root(). 2020-10-06 00:21:02 -07:00
fsimpl [vfs] Make sticky bit check consistent with Linux. 2021-02-03 22:44:51 -08:00
fsmetric Port filesystem metrics to VFS2. 2020-11-18 18:10:02 -08:00
hostcpu
hostfd Cap iovec array length in //pkg/sentry/hostfd. 2020-11-06 00:20:35 -08:00
hostmm Implement membarrier(2) commands other than *_SYNC_CORE. 2020-10-06 13:55:16 -07:00
inet Add basic address deletion to netlink 2020-10-27 00:18:10 -07:00
kernel Remove call to Notify from pipe.VFSPipeFD.CopyOutFrom. 2021-02-02 14:01:22 -08:00
limits Internal change. 2020-08-21 16:20:20 -07:00
loader Fix Go branch for arm64. 2021-01-11 22:33:36 -08:00
memmap Remove existing nogo exceptions. 2020-12-11 12:06:49 -08:00
mm Remove synchronous decommit for MADV_DONTNEED on private anonymous vmas. 2021-01-25 11:58:18 -08:00
pgalloc Avoid fallocate(FALLOC_FL_PUNCH_HOLE) when ManualZeroing is in effect. 2020-12-04 09:46:41 -08:00
platform Move ring0 package. 2021-02-02 12:03:26 -08:00
sighandling
socket Refactor HandleControlPacket/SockError 2021-02-01 12:04:03 -08:00
state Support VFS2 save/restore. 2020-10-23 17:48:33 -07:00
strace [netstack] Refactor common utils out of netstack to socket package. 2020-12-02 11:34:42 -08:00
syscalls Add ETIMEDOUT to partial result list 2021-02-02 11:37:11 -08:00
time Disable debug time adjustment logging 2020-07-13 15:42:53 -07:00
unimpl
uniqueid
usage pgalloc: Do not hold MemoryFile.mu while calling mincore. 2020-10-19 09:02:19 -07:00
vfs [vfs] Make sticky bit check consistent with Linux. 2021-02-03 22:44:51 -08:00
watchdog Add a helpful message in stuck task logs. 2020-11-19 16:52:25 -08:00
BUILD