psp_dev_check_access(9)
β¨ psp_dev_check_access(9) β¨
okay so bestie, this oneβs from the Kernel API Manual and itβs literally the vibe check for PSP device access π
π¦ NAME π¦
psp_dev_check_access β check if user in a given net ns can access PSP dev π«Ά
πΈ SYNOPSIS πΈ
int psp_dev_check_access (struct psp_dev *psd , struct net *net , bool
admin );
π ARGUMENTS π
psdβ the PSP device structure the user is trying to access, no cap πnetβ the net namespace the user is in, iykyk πadminβ iftrue, only allow access frompsdβs main deviceβs netns, for admin operations like config changes and key rotation. Iffalse, also allow access from network namespaces that have an associated device withpsd, for read-only and association management operations. periodt β¨
πΊ RETURN πΊ
0 if the PSP device should be visible in net, errno otherwise. slay π
π₯ SEE ALSO π₯
- Kernel file
./net/psp/psp_main.cPSP locking(9),psp_dev_create(9),psp_dev_unregister(9)β go read these too, bestie π
byeee, this page lives under ./net/psp and itβs dated October 2026 ππ¦
π¦ 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