cap_bprm_creds_from_file(9)
π cap_bprm_creds_from_file(9) β Kernel API Manual, bestie β¨
πΈ NAME πΈ
cap_bprm_creds_from_file β set up the proposed credentials for execve().
π SYNOPSIS π
int cap_bprm_creds_from_file (struct linux_binprm *bprm , const struct file *file );
π¦ ARGUMENTS π¦
bprmβ the execution parameters, including the proposed creds. This is the whole exec vibe package πfileβ the file to pull the credentials from. Yep, that file right there π
π DESCRIPTION π
Okay so this function sets up the proposed credentials for a new execution context being constructed by execve. The proposed creds in bprm->cred get altered β but lowkey important: it won't take effect immediately, bestie. It's proposed creds, not live creds. Periodt. β¨
π«Ά RETURN π«Ά
0 if successful, -ve on error. That's it, that's the whole return situation π
π SEE ALSO π
Go read these next, iykyk:
- Kernel file
./security/commoncap.c cap_capable_helper(9)cap_capable(9)cap_settime(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_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)
β¨ Cute sign-off: source/version./security, datedOctober 2026, forcap_bprm_creds_from_file(9)β bye bestie, slay responsibly ππ
π¦ 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