mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
* Example script to set permissions for setuid operation.
This commit is contained in:
parent
71e867c5f5
commit
92417600a1
2 changed files with 10 additions and 1 deletions
|
@ -943,7 +943,7 @@ SwitchToOriginalUser::~SwitchToOriginalUser()
|
|||
void switchToNixUser()
|
||||
{
|
||||
fprintf(stderr, "real = %d/%d, effective = %d/%d\n",
|
||||
getuid(), geteuid(), getgid(), getegid());
|
||||
getuid(), getgid(), geteuid(), getegid());
|
||||
|
||||
/* Note: we require setresuid for now since I don't want to think
|
||||
to deeply about whether this works on systems that don't have
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue