|
|
Follow these guidelines when you use trusted facilities:
main get enhanced priv open file drop enhanced priv write file ...
In most cases, use eaccess(S), which checks against effective UID and GID. Use access(S), which checks against the real UID and GID, when you are running a setuid(S) or setgid(S) binary.