Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597978 - sys-apps/policycoreutils: selocal fails with "Failed to resolve typeattributeset"
Summary: sys-apps/policycoreutils: selocal fails with "Failed to resolve typeattribute...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-24 12:19 UTC by Sven Vermeulen (RETIRED)
Modified: 2017-04-10 18:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix seinfo check in selocal (selocal_seinfo_return.patch,860 bytes, patch)
2016-10-24 12:27 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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