Kernel+Userland: Implement setuid() and setgid() and add /bin/su

Also show setuid and setgid bits in "ls -l" output. :^)
This commit is contained in:
Andreas Kling 2019-02-21 23:35:07 +01:00
commit 920e8e58ed
Notes: sideshowbarker 2024-07-19 15:38:51 +09:00
9 changed files with 79 additions and 8 deletions

View file

@ -283,7 +283,7 @@ public:
Process* fork(RegisterDump&);
int exec(String path, Vector<String> arguments, Vector<String> environment);
bool is_root() const { return m_euid == 0; }
bool is_superuser() const { return m_euid == 0; }
bool wakeup_requested() { return m_wakeup_requested; }
void request_wakeup() { m_wakeup_requested = true; }