Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Why is USE=cet forcefully masked by portage?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xgivolari
n00b
n00b


Joined: 26 Jul 2021
Posts: 63

PostPosted: Tue Sep 07, 2021 1:46 am    Post subject: [SOLVED] Why is USE=cet forcefully masked by portage? Reply with quote

Hello everyone,
Since my Tiger Lake CPU supports it, I'd like to enable control flow enforcement on my system. However, the corresponding "cet" USE-flag is apparently masked on a global level. I was unable to find any explanation on why this is the case. Are there currently any complications with using CET on Gentoo? Thanks!


Last edited by xgivolari on Tue Sep 07, 2021 10:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21431

PostPosted: Tue Sep 07, 2021 2:29 am    Post subject: Reply with quote

What do you see that makes you think it is globally masked? I only see it masked on a few packages:
profiles/base/package.use.mask:
# New and for Gentoo still quite experimental. You've been
# warned. (Also, works only on x86_64 and with certain CPUs
# and compiler/binutils combinations.)
sys-devel/binutils cet
sys-devel/binutils-hppa64 cet
sys-devel/gdb cet
sys-libs/binutils-libs cet
sys-libs/glibc cet
Back to top
View user's profile Send private message
xgivolari
n00b
n00b


Joined: 26 Jul 2021
Posts: 63

PostPosted: Tue Sep 07, 2021 10:25 am    Post subject: Reply with quote

My bad, since these 5 packages are the only ones to have the cet USE-flag in the first place, I thought the masking was done globally. Looks like I should have checked the profiles directory more carefully. But good to know that there is no explicit problem with CET on Gentoo, thanks!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21431

PostPosted: Tue Sep 07, 2021 4:14 pm    Post subject: Reply with quote

I found the above through a recursive grep (which only showed the masks, but not the comment justifying them).
Code:
$ cd "$PORTDIR" && grep -r cet --include='*use.mask'
I initially couldn't find it because I searched for masks on their own line, which can match global masks, but not package-specific masks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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