Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SELinux: error when trying to map user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jebriggsy
n00b
n00b


Joined: 22 Aug 2013
Posts: 26
Location: USA

PostPosted: Mon Feb 20, 2017 9:13 pm    Post subject: SELinux: error when trying to map user Reply with quote

Greetings,

I am trying to install Hardened Gentoo with SELinux + PaX + FDE LUKS on an IBM Thinkpad X60. Currently I am able to boot into the system just fine, but I am trying to map my user account to the staff_u SELinux user and it is throwing the following error:

Code:

# semange login -a -s staff_u ****
libsemanage.dbase_llist_query: could not query record value
OSError: [Errno 0] Error


I have been following this guide: https://wiki.gentoo.org/wiki/SELinux/Installation

I don't know where to even begin troubleshooting this error - I have successfully run Hardened w/ PaX + FDE LUKS on many systems, but this is my first foray into SELinux. Any help would be much appreciated!
Back to top
View user's profile Send private message
jebriggsy
n00b
n00b


Joined: 22 Aug 2013
Posts: 26
Location: USA

PostPosted: Sat Mar 04, 2017 4:46 pm    Post subject: Reply with quote

Update:

I have solved this problem by running the version of semanage compiled for python target 2.7 instead of 3.4.

Code:

/usr/lib/python-exec/python2.7/semanage login -a -s staff_u ****


This seems worthy of a bug report, possibly related to this one in RHEL: https://bugzilla.redhat.com/show_bug.cgi?id=1398427h
Also this one in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1247714

Will file if anyone can tell me which logs and results to include
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum