3 ms·
Isn’t pledge(2) trivially easy to escape anymore? This used to be one of the differences compared to eg capsicum(2).
by trasz2 4y ago
Isn’t pledge(2) trivially easy to escape anymore? This used to be one of the differences compared to eg capsicum(2).
- saagarjha 4y agoNo, not really.
- anthk 4y agopledge(2) aborts.
- beachhead 4y agois pledge easy to escape? can you give some examples?
- trasz2 4y agoFor a while you could just execute another binary, it would run without restrictions imposed on the (pledged) parent. This is a stark contrast to Capsicum, where the monotonicity (ie the fact that once you loose the permission to something you'll never ever get it back, unless being explicitly passed it again) is one of the fundamental assumption behind the design.