]> git.ipfire.org Git - thirdparty/lxc.git/commit
lsm: fixup lsm_process_label_set_at return values
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 12 Jul 2018 13:16:40 +0000 (15:16 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 24 Jul 2018 11:59:25 +0000 (13:59 +0200)
commitc68d5b0dd63ea8226698ae3ff8a5336a60c171c3
tree78a4a9ffc5b141a1fa1b7c538c4fc5bee9bf75c8
parent39e2cbec3cc9f49e3edd65b2aa4bdd3983a25fea
lsm: fixup lsm_process_label_set_at return values

Always return -1 on error (some code paths returned -1, some
returned negative error codes), don't assume 'errno' is set
afterwards, as the function already prints errors and not
all code paths will have a usable errno value.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/lsm/apparmor.c
src/lxc/lsm/lsm.c