cap_bprm_creds_from_file(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

✨ Cute sign-off: source/version ./security, dated October 2026, for cap_bprm_creds_from_file(9) β€” bye bestie, slay responsibly πŸ’–πŸŽ€
πŸ“¦ where this page comes from