mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
e598f22768
Check if the process we are currently running is in a jail, and if that is the case, fail early with the EPERM error code. Also, as Brian noted, we should also disallow attaching to a jail in case of already running within a setid executable, as this leaves the user with false thinking of being secure (because you can't exec new setid binaries), but the current program is still marked setid, which means that at the very least we gained permissions while we didn't expect it, so let's block it. |
||
---|---|---|
.. | ||
alarm.cpp | ||
anon_create.cpp | ||
beep.cpp | ||
chdir.cpp | ||
chmod.cpp | ||
chown.cpp | ||
clock.cpp | ||
debug.cpp | ||
disown.cpp | ||
dup2.cpp | ||
emuctl.cpp | ||
execve.cpp | ||
exit.cpp | ||
faccessat.cpp | ||
fallocate.cpp | ||
fcntl.cpp | ||
fork.cpp | ||
fsync.cpp | ||
ftruncate.cpp | ||
futex.cpp | ||
get_dir_entries.cpp | ||
get_stack_bounds.cpp | ||
getrandom.cpp | ||
getuid.cpp | ||
hostname.cpp | ||
inode_watcher.cpp | ||
ioctl.cpp | ||
jail.cpp | ||
keymap.cpp | ||
kill.cpp | ||
link.cpp | ||
lseek.cpp | ||
mkdir.cpp | ||
mknod.cpp | ||
mmap.cpp | ||
mount.cpp | ||
open.cpp | ||
perf_event.cpp | ||
pipe.cpp | ||
pledge.cpp | ||
poll.cpp | ||
prctl.cpp | ||
process.cpp | ||
profiling.cpp | ||
ptrace.cpp | ||
purge.cpp | ||
read.cpp | ||
readlink.cpp | ||
realpath.cpp | ||
rename.cpp | ||
resource.cpp | ||
rmdir.cpp | ||
sched.cpp | ||
sendfd.cpp | ||
setpgid.cpp | ||
setuid.cpp | ||
sigaction.cpp | ||
socket.cpp | ||
stat.cpp | ||
statvfs.cpp | ||
sync.cpp | ||
sysconf.cpp | ||
thread.cpp | ||
times.cpp | ||
umask.cpp | ||
uname.cpp | ||
unlink.cpp | ||
unveil.cpp | ||
utime.cpp | ||
utimensat.cpp | ||
waitid.cpp | ||
write.cpp |