fchmod¶
Intro¶
fchmod - change the permissions of a file descriptor.
Description¶
The fchmod() function shall change the file permission bits of the file referred to by the open file descriptor fd to the value specified by mode. Mode is specified in the same format used for file mode-bits in chmod.
The fchmod() function shall not modify ACLs (Access Control Lists), regardless of the effective user ID of the process.
Arguments¶
fd
:int
[K] - file descriptormode
:mode_t
[K] - the permissions to be set on the file referred to by the file descriptor
Available Tags¶
- K - Originated from kernel-space.
Hooks¶
sys_fchmod¶
Type¶
Kprobe.
Purpose¶
To intercept calls to the fchmod system call and log the arguments used.
Example Use Case¶
A system administrator needs to change the permissions of a file for a user in a specific group. The administrator can use the fchmod() system call to change the permissions of that file for that specific user.
Issues¶
None.
Related Events¶
- chmod() - change the permissions of a file.
This document was automatically generated by OpenAI and needs review. It might not be accurate and might contain errors. The authors of Tracee recommend that the user reads the "events.go" source file to understand the events and their arguments better.