Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] keyctl adds a key, but reading = Permission denied
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
nacitar
n00b
n00b


Joined: 10 Jun 2011
Posts: 11

PostPosted: Wed Aug 02, 2017 5:55 pm    Post subject: [SOLVED] keyctl adds a key, but reading = Permission denied Reply with quote

$ keyctl add user "testing" "somedata" @u
653010022
$ keyctl read 653010022
keyctl_read_alloc: Permission denied


I was chasing a problem in some software that used kernel keys, and ultimately I can reproduce the root issue from the command line like this. I've tested this on LOADS of linux machines, and none of them do this except mine.

I have no idea what could possibly warrant this. Other than CONFIG_KEYS, i have no clue what else would even be relevant.


Kernel: 4.9.34
CONFIG_KEYS=y

Any ideas?


Last edited by nacitar on Wed Aug 02, 2017 7:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 583

PostPosted: Wed Aug 02, 2017 6:12 pm    Post subject: Reply with quote

I really have no actual clue, but it seems to me you may need to add your user to some group?
Back to top
View user's profile Send private message
nacitar
n00b
n00b


Joined: 10 Jun 2011
Posts: 11

PostPosted: Wed Aug 02, 2017 6:19 pm    Post subject: Reply with quote

it works on another machine of mine with simply:
wheel users portage <user_name>

This user has that and more.
Back to top
View user's profile Send private message
nacitar
n00b
n00b


Joined: 10 Jun 2011
Posts: 11

PostPosted: Wed Aug 02, 2017 7:27 pm    Post subject: Reply with quote

I'm wondering if this might be systemd related, per https://github.com/systemd/systemd/pull/6286

I tried -9999 systemd and that didn't fix the issue for me either btw. =/
Back to top
View user's profile Send private message
nacitar
n00b
n00b


Joined: 10 Jun 2011
Posts: 11

PostPosted: Wed Aug 02, 2017 7:39 pm    Post subject: Reply with quote

Just tried openrc, works fine... it's definitely that bug. I guess you can call this [SOLVED] even though it's still broken.
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