Restricting path name lookup with openat2()
Restricting path name lookup with openat2()
Posted Aug 24, 2019 5:40 UTC (Sat) by cyphar (subscriber, #110703)In reply to: Restricting path name lookup with openat2() by epa
Parent article: Restricting path name lookup with openat2()
This isn't all a hypothetical -- my first draft of the syscall did just add a new argument, and I discovered pretty quickly (while writing the selftests) that it was abysmal to actually use that interface. The fact that C zeroes out structs when you do designated initialisation makes using structs so much more straightforward here. All of that being said, I'm not married to the current interface at all. If the only concern people have with the patches is what the syscall looks like, I'm more than happy to change it.
Posted Aug 24, 2019 8:00 UTC (Sat)
by epa (subscriber, #39769)
[Link] (1 responses)
Posted Aug 24, 2019 8:26 UTC (Sat)
by cyphar (subscriber, #110703)
[Link]
Restricting path name lookup with openat2()
Restricting path name lookup with openat2()
