| Post Reply | RetroFed Forum Forum Index » Berkeley Software Distribution |
| Author | Message | ||
|---|---|---|---|
|
tpid98
lemmy.sdf.org
tpid98@lemmy.sdf.org Joined: 2023-07-03 |
New @BSDCan video posted: Controlled credentials transitions without privileges: mac_do(4), mdo(1) and setcred(2) by Olivier Certner In this talk, we will present a project that aims at allowing controlled process credentials transitions without using setuid executables but instead leveraging FreeBSD's MAC framework. Traditional credentials-changing programs, such as sudo(8), have a non-negligible attack surface as they often include a lot of infrequently used features and mechanisms that can be dangerous from a security standpoint (e.g., loadable modules). As these programs have to run as 'root', compromising them can have catastrophic consequences. We will describe how mac_do(4)'s credentials rules work, what the role of the mdo(1) companion program is, and what you can do with them in practice. We will also touch on some aspects of the implementation, notably why we needed to introduce the new setcred(2) system call, which allows to change all process credentials in a single call, and possibly those that are related to the use of some FreeBSD's kernel sub-systems (notably, sysctl, jails and OSD). |
||
| 1 Original | |||
| Post Reply |
Back to top |