[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1742503300509670.png (231 KB, 760x804)
231 KB
231 KB PNG
previous: >>108430426

#define __NR_getuid                102
#define __NR_getgid 104
#define __NR_setuid 105
#define __NR_setgid 106
#define __NR_geteuid 107
#define __NR_getegid 108
#define __NR_setpgid 109
#define __NR_getpgrp 111
#define __NR_setreuid 113
#define __NR_setregid 114
#define __NR_getgroups 115
#define __NR_setgroups 116
#define __NR_setresuid 117
#define __NR_getresuid 118
#define __NR_setresgid 119
#define __NR_getresgid 120
#define __NR_getpgid 121

i can't be bothered to link all of these
https://man7.org/linux/man-pages/man2/<your_syscall_here>.2.html

tl;dr:
get and set process ids/groups/etc

there's not much to say about these beyond what they say on the tin. the few that are unique in this bundle i skipped over so that they can get their own threads. you should go back and post in the ptrace thread. that one is a whole lot more interesting

relevant resources:
man man

man syscalls

https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
>>
>>108436379
kys
>>
>>108436390
what's your beef with op?
>>
>there's not much to say about these
we could talk about the euid and uid. when to use which?
also
>if the process has appropriate privileges, setuid() shall set the real user ID, effective user ID, and the saved set-user-ID of the calling process to uid.
>appropriate privileges
and these are? Do you have to start as root to be able to lower your privileges later or is there support for hierarchical accounts where you need to read on file at startup and then you drop that privilege?
>>
what is a syscall?
>>
File: 1764470124262541.jpg (266 KB, 905x881)
266 KB
266 KB JPG
>>108436379
>mfw I can still recognize where this is from
>>
>>108436379
>you should go back and post in the ptrace thread.
I will, I just wanted to tell you that I'm delighted you abstained once again from coomer images
>>
>>108437049
>>if the process has appropriate privileges, setuid() shall set the real user ID, effective user ID, and the saved set-user-ID of the calling process to uid.
>>appropriate privileges
>and these are? Do you have to start as root to be able to lower your privileges later or is there support for hierarchical accounts where you need to read on file at startup and then you drop that privilege?
You need to either be root or have the CAP_SETUID capability. You can still call setuid(2) without these, but not really in a way that "drops" privileges. https://man7.org/linux/man-pages/man2/setuid.2.html explains this in more detail.
>>
>>108437991
Fuufu.
>>
>>108437991
shinchou sa max fuufu
>>
>>108438527
Me and my japanese wife
>>
>>108438527
>>108438146
my negroes
>>
>>108438584
literally inspired me I'm gonna do my wife in that position later
>>
>>108436379
Niggerlicious. Why so many?
>>
>>108440611
Probably because someone realized that branches are expensive.
>>
>>108437049
i guess we could also discuss how setuid can fail from a root process, and how not checking the return code is a "grave security violation"
that amuses me
>>
>>108440300
Is your wife Japanese and <150cm?
>>
>>108437376
It was hot as fuck
>>
>>108437376
oh yeah, I do too
>>
>>108441232
she's latina and 280lbs
>>
>>108442588
nvm, I did not



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.