asleepymoon
asleepymoon pushed to main at asleepymoon/Luna 2022-10-29 07:39:31 +00:00
32e09d3417 libc: Stub out more functionality so part of binutils builds
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 19:58:30 +00:00
9db1e8cdb3 Inform of the default user configuration in the MOTD
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 19:57:25 +00:00
e9092ab235 sh: Display username instead of shell's PID in prompt
0b838572e1 apps: Add a new session program which manages user login
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 19:03:07 +00:00
702cc0442c endpwent: Close all opened instances of /etc/passwd, including those used by getpwuid() and getpwnam()
2ca20c1a1e compilation fix
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 19:00:46 +00:00
91470851cd stat: Show username of file owner
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 18:57:35 +00:00
5aba1c5f15 su: Make it setuid root, ask for a password, and accept a username
477af66cdc ps: Show usernames of processes, using getpwuid()
7d0e442cde libc: Add /etc/passwd and the pwd.h API
e05f3f5325 Kernel: Read file modes from the initrd, filtering out write permissions
a2d9ada4dc oopsie
Compare 5 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 15:56:08 +00:00
b8296eb92d su: Also set group ID
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 15:53:34 +00:00
fa0dc4b18c apps: Remove sym and crash
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 15:52:59 +00:00
68d0d0b759 apps: Add a new su utility
8f0e358360 libc: Add setuid, setgid, seteuid, setegid
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 15:31:47 +00:00
09a615bd99 Kernel, libc: Expose processes' UID and GID in pstat()
acdc2d3ad7 init: Open /dev/console for appending
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 15:24:41 +00:00
17671fd435 libc: Implement getuid, geteuid, getgid, getegid
asleepymoon pushed to main at asleepymoon/Luna 2022-10-28 15:19:44 +00:00
1c4f1ab867 Kernel, libc: Add setuid() and setgid() system calls
2269ec267c apps: Add a 'stat' utility
b1729689df libc: Open stdout and stderr write-only on init
77d331b258 init: Open /etc/motd with O_CLOEXEC to avoid leaking this file to children
c312d81de4 Kernel, libc: Add st_uid and st_gid to stat, and handle st_mode differently
Compare 11 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-27 15:50:28 +00:00
8ed0ff1381 libc: Ensure /dev/random is opened with O_CLOEXEC on init
asleepymoon pushed to main at asleepymoon/Luna 2022-10-27 15:42:13 +00:00
d93a4062a2 libc: Do not use the heavy variadic syscall() function for wrappers
asleepymoon pushed to main at asleepymoon/Luna 2022-10-27 15:24:12 +00:00
0eb0ca4028 libc: Add an empty locale.h
7155cf8d6b libc: Add alloca.h
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2022-10-27 15:20:59 +00:00
703b0a1435 libc: Make tv_usec in timeval signed, as it should be
asleepymoon pushed to main at asleepymoon/Luna 2022-10-27 15:17:37 +00:00
50cda50f01 Kernel, libc: Add F_GETFD, F_SETFD and FD_CLOEXEC
asleepymoon pushed to main at asleepymoon/Luna 2022-10-27 15:06:00 +00:00
fcf53ef6a5 Kernel: Make waitpid() block by default unless WNOHANG is specified
asleepymoon pushed to main at asleepymoon/Luna 2022-10-27 06:10:46 +00:00
da8a3de480 It's actually S_ISCHR in this case
asleepymoon pushed to main at asleepymoon/Luna 2022-10-27 06:09:21 +00:00
cdb1f46b93 libc: Add S_ISDEV