[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]


previous: >>108436379

#define __NR_syslog                103

https://man7.org/linux/man-pages/man2/syslog.2.html

tl;dr:
it's basically dmesg

or rather, dmesg wraps syslog
https://man7.org/linux/man-pages/man1/dmesg.1.html

it lets you read kernel log messages, filter by priority level, etc. as anyone who has ever customized their own kernel knows, these log messages are invaluable

this was pretty funny to me:
>From the very start, people noted that it is unfortunate that a system call and a library routine of the same name are entirely different animals.

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/
>>
You mean any unprivileged application can just emit an arbitrary amount of data that will be stored in a privileged location? Sounds like a security issue.
>>
>>108444436
did you even read the manpage? >:(
All commands except 3 and 10 require privilege.  In Linux kernels
before Linux 2.6.37, command types 3 and 10 are allowed to
unprivileged processes; since Linux 2.6.37, these commands are
allowed to unprivileged processes only if
/proc/sys/kernel/dmesg_restrict has the value 0. Before Linux
2.6.37, "privileged" means that the caller has the CAP_SYS_ADMIN
capability. Since Linux 2.6.37, "privileged" means that the
caller has either the CAP_SYS_ADMIN capability (now deprecated for
this purpose) or the (new) CAP_SYSLOG capability.



[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.