tools: Add mknod syscall

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
This commit is contained in:
Filip Schauer 2023-11-13 11:30:35 +01:00 committed by Thomas Lamprecht
parent 118ca13a88
commit b792e8df81
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@ BEGIN {
openat => &SYS_openat,
close => &SYS_close,
mkdirat => &SYS_mkdirat,
mknod => &SYS_mknod,
faccessat => &SYS_faccessat,
setresuid => &SYS_setresuid,
fchownat => &SYS_fchownat,

View File

@ -1720,6 +1720,11 @@ sub mkdirat($$$) {
return syscall(PVE::Syscall::mkdirat, int($dirfd), $name, int($mode)) == 0;
}
sub mknod($$$) {
my ($filename, $mode, $dev) = @_;
return syscall(PVE::Syscall::SYS_mknod, $filename, int($mode), int($dev)) == 0;
}
sub fchownat($$$$$) {
my ($dirfd, $pathname, $owner, $group, $flags) = @_;
return syscall(