PostgreSQL considers seccomp() filters
PostgreSQL considers seccomp() filters
Posted Oct 2, 2019 18:35 UTC (Wed) by nivedita76 (subscriber, #121790)In reply to: PostgreSQL considers seccomp() filters by rweikusat2
Parent article: PostgreSQL considers seccomp() filters
Posted Oct 2, 2019 21:19 UTC (Wed)
by rweikusat2 (subscriber, #117920)
[Link] (3 responses)
There's some outright paradoxical reasoning in here: seccomp is supposed to defend against the issue that it's conjectured to be impossible to determine if the implementation of a given system call is free of exploitable errors but in order to use seccomp sensibly, ie not in a "fire a shotgun in the dark at hope that some of the projectiles hit something" mode of operation, this very information would need to be known.
The best one could sensibly use this for is to block access to system calls known to be exploitable until a fix becomes available. Or for its original purpose: Run unknown code in a sandbox which is supposed to be prohibited from doing certain things, eg, most file system manipulations.
Posted Oct 2, 2019 22:21 UTC (Wed)
by Cyberax (✭ supporter ✭, #52523)
[Link] (2 responses)
> There's some outright paradoxical reasoning in here: seccomp is supposed to defend against the issue that it's conjectured to be impossible to determine if the implementation of a given system call is free of exploitable errors
Note the word "probability". This is not prevention, it's mitigation.
History shows that this approach actually works in practice. Even the misguided SELinux has prevented multiple exploitable bugs.
Posted Oct 3, 2019 17:04 UTC (Thu)
by rweikusat2 (subscriber, #117920)
[Link] (1 responses)
Posted Oct 4, 2019 8:43 UTC (Fri)
by cyphar (subscriber, #110703)
[Link]
(As an aside, note that Docker doesn't user user namespaces by default, LXC has been protected against even more exploits. But that's a very different topic.)
PostgreSQL considers seccomp() filters
PostgreSQL considers seccomp() filters
This is just nonsense. Reducing amount of code exposed to attacker reduces the chances that an exploitable bug will be accessible to them.
You clearly live in a fantasy world. The seccomp sandboxing is designed to prevent access to as much of the attack surface as possible. This automatically makes sure that the probability of an exploit goes down.
PostgreSQL considers seccomp() filters
PostgreSQL considers seccomp() filters