Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 597978

Summary: sys-apps/policycoreutils: selocal fails with "Failed to resolve typeattributeset"
Product: Gentoo Linux Reporter: Sven Vermeulen (RETIRED) <swift>
Component: SELinuxAssignee: Sven Vermeulen (RETIRED) <swift>
Status: RESOLVED FIXED    
Severity: normal CC: selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix seinfo check in selocal

Description Sven Vermeulen (RETIRED) gentoo-dev 2016-10-24 12:19:17 UTC
The problem is that selocal uses seinfo's return code, but with recent SELinux user space the return code is no longer honored.

~$ seinfo -ainit_t

Type Attributes: 0

~$ echo $?
0

Previously, this was non-zero.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2016-10-24 12:27:24 UTC
Created attachment 451316 [details, diff]
Fix seinfo check in selocal

This patch seems to work, but might not work on previous userspace (still need to test this). I'll have to check with upstream if this is expected behavior or not.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2017-01-30 19:31:05 UTC
Fixed in the tree (2.6-r1 release), currently still ~arch.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2017-04-10 18:50:57 UTC
Stabilized