MCPcopy Create free account
hub / github.com/ElementsProject/elements / AllowFileSystem

Method AllowFileSystem

src/util/syscall_sandbox.cpp:577–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575 }
576
577 void AllowFileSystem()
578 {
579 allowed_syscalls.insert(__NR_access); // check user's permissions for a file
580 allowed_syscalls.insert(__NR_chdir); // change working directory
581 allowed_syscalls.insert(__NR_chmod); // change permissions of a file
582 allowed_syscalls.insert(__NR_copy_file_range); // copy a range of data from one file to another
583 allowed_syscalls.insert(__NR_fallocate); // manipulate file space
584 allowed_syscalls.insert(__NR_fchmod); // change permissions of a file
585 allowed_syscalls.insert(__NR_fchown); // change ownership of a file
586 allowed_syscalls.insert(__NR_fdatasync); // synchronize a file's in-core state with storage device
587 allowed_syscalls.insert(__NR_flock); // apply or remove an advisory lock on an open file
588 allowed_syscalls.insert(__NR_fstat); // get file status
589 allowed_syscalls.insert(__NR_fstatfs); // get file system status
590 allowed_syscalls.insert(__NR_fsync); // synchronize a file's in-core state with storage device
591 allowed_syscalls.insert(__NR_ftruncate); // truncate a file to a specified length
592 allowed_syscalls.insert(__NR_getcwd); // get current working directory
593 allowed_syscalls.insert(__NR_getdents); // get directory entries
594 allowed_syscalls.insert(__NR_getdents64); // get directory entries
595 allowed_syscalls.insert(__NR_inotify_rm_watch);// remove an existing watch from an inotify instance
596 allowed_syscalls.insert(__NR_linkat); // create relative to a directory file descriptor
597 allowed_syscalls.insert(__NR_lstat); // get file status
598 allowed_syscalls.insert(__NR_mkdir); // create a directory
599 allowed_syscalls.insert(__NR_newfstatat); // get file status
600 allowed_syscalls.insert(__NR_open); // open and possibly create a file
601 allowed_syscalls.insert(__NR_openat); // open and possibly create a file
602 allowed_syscalls.insert(__NR_readlink); // read value of a symbolic link
603 allowed_syscalls.insert(__NR_rename); // change the name or location of a file
604 allowed_syscalls.insert(__NR_rmdir); // delete a directory
605 allowed_syscalls.insert(__NR_sendfile); // transfer data between file descriptors
606 allowed_syscalls.insert(__NR_stat); // get file status
607 allowed_syscalls.insert(__NR_statfs); // get filesystem statistics
608 allowed_syscalls.insert(__NR_statx); // get file status (extended)
609 allowed_syscalls.insert(__NR_unlink); // delete a name and possibly the file it refers to
610 allowed_syscalls.insert(__NR_unlinkat); // delete relative to a directory file descriptor
611 }
612
613 void AllowFutex()
614 {

Callers 1

SetSyscallSandboxPolicyFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected