cap_settime(9)
π cap_settime(9) β a Kernel API Manual moment
okay bestie, welcome to the Kernel API Manual entry for cap_settime, and honestly? it's giving "short and iconic." let's get into it β¨
πΈ NAME
cap_settime β figure out whether the current process is even allowed to set the system clock π°οΈ
π¦ SYNOPSIS
int cap_settime (const struct timespec64 *ts , const struct timezone *tz
);
like yes, that's the whole thing. no cap, that's it. π₯
π ARGUMENTS
tsβ the time you wanna set, bestie β°tzβ the timezone you wanna set π
π DESCRIPTION
so basically this one does a vibe check on the current process: may it set the system clock and the timezone info or not? it returns 0 if permission is granted π«Ά, and -ve if it's denied π (yes, negative β that's the no-fun answer).
literally that's the whole function. short queen behavior π.
β SEE ALSO
fr fr go read these next, they're all in the kernel file ./security/commoncap.c:
cap_capable_helper(9)cap_capable(9)cap_ptrace_access_check(9)cap_ptrace_traceme(9)cap_capget(9)cap_capset(9)cap_inode_need_killpriv(9)cap_inode_killpriv(9)kuid_root_in_ns(9)rootid_from_xattr(9)cap_convert_nscap(9)get_vfs_caps_from_disk(9)cap_bprm_creds_from_file(9)cap_inode_setxattr(9)cap_inode_removexattr(9)cap_task_fix_setuid(9)cap_task_setscheduler(9)cap_task_setioprio(9)cap_task_setnice(9)cap_task_prctl(9)cap_vm_enough_memory(9)cap_mmap_addr(9)
lowkey obsessed with how many of these there are. collect them all like stickers π
mwah π that's the page! this lil entry lives under ./security in the Kernel API Manual, and the version/date stamp on it is October 2026 β cap_settime(9), periodt. π§ββοΈπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms