chiark / gitweb /
selinux: rework label query APIs
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Oct 2014 16:58:18 +0000 (18:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Oct 2014 19:36:56 +0000 (21:36 +0200)
commit7f416dae9bcf1cfb63689ee9ac851adf738f072b
tree6b3435c524096f5966353b6916ce9209040b3ff2
parent376a2980960baba22b9bee6b227c27c373215b5a
selinux: rework label query APIs

APIs that query and return something cannot silently fail, they must
either return something useful, or an error. Fix that.

Also, properly rollback socket unit fd creation when something goes
wrong with the security framework.
src/core/socket.c
src/shared/selinux-util.c