Enter libcasper service to enter capability mode,and adjust how tftpd interacts with
socket,because it violates capability.
I reimplemented the underlying file operation with cap_fileargs.
Sponsored by: Google, Inc. (GSoC 2024)
Differential D46281
tftpd:capsicumize tftpd hanslu952_gmail.com on Aug 13 2024, 11:54 AM. Authored by Tags None Referenced Files
Details Enter libcasper service to enter capability mode,and adjust how tftpd interacts with Sponsored by: Google, Inc. (GSoC 2024) Trivial:$ mkdir /tftproot $ cd /tftproot $ vim testfile $ tftp localhost tftp> get testfile Normal:$ cd /usr/tests/libexec/tftpd $ kyua test -k Kyuafile one case testing $ kyua debug -k Kyuafile functional:testcase Set up enotcapable to get coredump sysctl kern.trap_enotcap=1 sysctl kern.corefile= /tmp/coredumps/%N.core gdb executable corefile
Diff Detail
|