cosmopolitan/test/libc/calls
Gabriel Ravier d5b8b644c2
unveil: Added truncate support on Linux 6.2+ (#803)
Right now, cosmopolitan uses Linux Landlock ABI version 2 on Linux,
meaning that the polyfill for unveil() cannot restrict operations such
as truncate() (a limitation of Landlock's ABI from then). This means
that to restrict truncation operations Cosmopolitan instead has to ban
the syscall through a SECCOMP BPF filter, meaning that completely
legitimate truncate() calls are blocked

However, the newest version of the Landlock ABI (version 3) introduced
in Linux 6.2, released in February 2023, implements support for controlling truncation
operations. As such, the previous SECCOMP BPF truncate() filtering is
no longer needed when the new ABI is available

This patch implements unveil truncate support for Linux Landlock ABI
version 3
2023-04-17 16:17:02 -07:00
..
_timespec_test.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
access_test.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
chdir_test.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
clock_getres_test.c Clean up some code 2022-08-20 12:32:51 -07:00
clock_gettime_test.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
clock_nanosleep_test.c Remove unnecessary STRACE() statement 2022-11-08 15:33:16 -08:00
closefrom_test.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
commandv_test.c commandv: fix dir tests on non-NT (#764) 2023-04-15 06:26:13 -07:00
copy_file_range_test.c Work around copy_file_range() GitHub Actions issue 2022-09-19 16:12:56 -07:00
diagnose_syscall_test.c Add WSL to test fleet 2022-11-02 06:49:42 -07:00
dup_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
execve_test.c execve_test.com: fix run with landlock make. Cleanup execve/fexecve tests (#755) 2023-03-01 22:32:15 -08:00
fcntl_test.c Workaround sendfile() bug in WSL 2022-11-02 02:17:03 -07:00
fexecve_test.c Add memfd fexecve zipos support (#752) 2023-03-29 18:16:46 -07:00
fileexists_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
ftruncate_test.c Update tests and CPU detection for Blink 2023-01-18 00:56:09 -08:00
getcontext_test.c Perform more low-level code cleanup 2022-09-09 04:07:08 -07:00
getcwd_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
getgroups_test.c Fix getgroups / setgroups tests across platforms 2022-09-18 03:18:38 -07:00
getitimer_test.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
getpriority_test.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
ioctl_siocgifconf_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
life.c Make improvements to locking 2022-06-19 01:30:12 -07:00
lock2_test.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
lock_ofd_test.c Improve cancellations, randomness, and time 2022-11-05 23:45:32 -07:00
lock_test.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
lseek_test.c Improve docs of more system calls 2022-10-02 22:14:33 -07:00
makedirs_test.c Further improve cocmd interpreter 2022-10-12 10:44:54 -07:00
mkdir_test.c Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
mkntcmdline_test.c Support argv[0] munging on Windows 2023-01-03 03:22:40 -08:00
mkntenvblock_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
mkntpath_test.c Have execve() escape double quotes in cmd.exe's preferred style 2022-10-02 09:15:46 -07:00
open_test.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
openbsd_test.c Create unit test framework for subprocesses 2022-09-03 18:02:01 -07:00
pipe_test.c Update tests and CPU detection for Blink 2023-01-18 00:56:09 -08:00
pledge2_test.c Create unit test framework for subprocesses 2022-09-03 18:02:01 -07:00
pledge_test.c Elevate Windows production worthiness 2022-10-13 13:44:41 -07:00
poll_test.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
posix_fadvise_test.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
pread_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
preadv_test.c Make important improvements 2022-09-14 22:39:08 -07:00
printargs_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
ptrace_test.c Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
pwrite_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
raise_race_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
raise_test.c Improve quality of raise(), abort(), and tkill() 2022-09-03 20:17:54 -07:00
read_test.c Fix bugs and make code tinier 2022-10-09 23:21:34 -07:00
readansi_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
readlinkat_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
renameat_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
reservefd_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
sched_getaffinity_test.c Revamp posix_spawn() implementation 2022-10-12 05:26:58 -07:00
sched_setscheduler_test.c Clean up some code 2022-08-20 12:32:51 -07:00
seccomp_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
setitimer_test.c Change sigaction_f to match sysv signature (#585) 2022-09-02 05:08:35 -07:00
setrlimit_test.c Increase stack size to 128k and guard size to 16k 2022-12-18 22:58:29 -08:00
sigaction_test.c Update tests and CPU detection for Blink 2023-01-18 00:56:09 -08:00
signal_test.c Remove testonly keyword 2022-09-05 08:41:43 -07:00
sigpending_test.c Introduce sigtimedwait() and sigwaitinfo() 2022-10-10 07:39:44 -07:00
sigprocmask_test.c Fix inability to add some signals to mask on NT (#596) 2022-09-06 18:35:26 -07:00
sigsuspend_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
sigtimedwait_test.c Introduce sigtimedwait() and sigwaitinfo() 2022-10-10 07:39:44 -07:00
splice_test.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
stat_test.c Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
statfs_test.c Polyfill statfs() and fstatfs() on Windows 2022-08-17 19:01:51 -07:00
symlinkat_test.c Fold LIBC_RAND into LIBC_STDIO/TINYMATH/INTRIN 2022-08-11 12:32:00 -07:00
sys_ptrace_test.c Prevent Make from talking to public Internet 2022-08-12 21:51:39 -07:00
test.mk Add memfd fexecve zipos support (#752) 2023-03-29 18:16:46 -07:00
tiny64.elf Bump support up to FreeBSD 13 and NetBSD 9.2 2022-06-11 10:36:17 -07:00
tkill_test.c Make fixes and improvements 2022-11-08 10:11:46 -08:00
unlinkat_test.c Make fixes and improvements 2022-10-19 07:19:19 -07:00
unveil_test.c unveil: Added truncate support on Linux 6.2+ (#803) 2023-04-17 16:17:02 -07:00
utimensat_test.c Fix futimes() regression 2022-10-05 19:25:07 -07:00
vfork_test.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
write_test.c Perform some code cleanup 2022-10-04 23:32:16 -07:00
writev_test.c Update tests and CPU detection for Blink 2023-01-18 00:56:09 -08:00
zipread.c Add memfd fexecve zipos support (#752) 2023-03-29 18:16:46 -07:00