Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to enable SELinux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jcrcx_art
n00b
n00b


Joined: 10 Sep 2020
Posts: 9

PostPosted: Tue Sep 22, 2020 10:21 pm    Post subject: Unable to enable SELinux Reply with quote

Hello forum,

I want to setup a SELinux kernel and I've been following https://wiki.gentoo.org/wiki/SELinux/Installation#Installing_a_SELinux_kernel but I can not find the
Code:
 Default security module (SELinux) --->
on my kernel.
I just get
Code:
art ~ # id -Z
id: --context (-Z) works only on an SELinux-enabled kernel

on the root user and the normal user

Please help
Back to top
View user's profile Send private message
jcrcx_art
n00b
n00b


Joined: 10 Sep 2020
Posts: 9

PostPosted: Wed Sep 23, 2020 12:13 am    Post subject: Reply with quote

I think it's a bug, referring to this: https://forums.gentoo.org/viewtopic-p-6644783.html
But is from 2011

https://bugs.gentoo.org/show_bug.cgi?id=363171
Back to top
View user's profile Send private message
Phoenix591
Apprentice
Apprentice


Joined: 17 Sep 2007
Posts: 296

PostPosted: Wed Sep 23, 2020 11:47 pm    Post subject: Reply with quote

When in menuconfig press / to search. Punch in CONFIG_SECURITY_SELINUX
Back to top
View user's profile Send private message
jcrcx_art
n00b
n00b


Joined: 10 Sep 2020
Posts: 9

PostPosted: Fri Sep 25, 2020 8:45 pm    Post subject: Reply with quote

Thanks for your reply.

Code:

    Symbol: SECURITY_SELINUX [=y]           
    Type  : bool
    Prompt: NSA SELinux Support
      Location:
      (1) -> Security options
      Defined at security/selinux/Kconfig:2
      Depends on: SECURITY_NETWORK [=y] && AUDIT [=y] && NET [=y] && INET [=y]
      Selects: NETWORK_SECMARK [=y]

    Symbol: DEFAULT_SECURITY_SELINUX [=y]                               
    Type  : bool
    Prompt: SELinux
      Location:
        -> Security options
    (2)   -> First legacy 'major LSM' to be initialized (<choice> [=y])
      Defined at security/Kconfig:261
      Depends on: <choice>

    Symbol: SECURITY_SELINUX_AVC_STATS [=n]]
    Type  : bool
    Prompt: NSA SELinux AVC Statistics
      Location:
        -> Security options
    (3)   -> NSA SELinux Support (SECURITY_SELINUX [=y])
      Defined at security/selinux/Kconfig:60
      Depends on: SECURITY_SELINUX [=y]

   Symbol: SECURITY_SELINUX_BOOTPARAM [=y]
   Type  : bool
   Prompt: NSA SELinux boot parameter
     Location:
       -> Security options
   (4)   -> NSA SELinux Support (SECURITY_SELINUX [=y])
     Defined at security/selinux/Kconfig:12
     Depends on: SECURITY_SELINUX [=y]

   Symbol: SECURITY_SELINUX_CHECKREQPROT_VALUE [=0]                                                                                                 
   Type  : integer
   Range : [0 1]
   Prompt: NSA SELinux checkreqprot default value
     Location:
       -> Security options
   (5)   -> NSA SELinux Support (SECURITY_SELINUX [=y])
     Defined at security/selinux/Kconfig:69
     Depends on: SECURITY_SELINUX [=y]

   Symbol: SECURITY_SELINUX_DEVELOP [=y]
   Type  : bool
   Prompt: NSA SELinux Development Support
     Location:
       -> Security options
   (6)   -> NSA SELinux Support (SECURITY_SELINUX [=y])
     Defined at security/selinux/Kconfig:47
     Depends on: SECURITY_SELINUX [=y]

   Symbol: SECURITY_SELINUX_DISABLE [=n]
   Type  : bool
   Prompt: NSA SELinux runtime disable
     Location:
       -> Security options
   (7)   -> NSA SELinux Support (SECURITY_SELINUX [=y])
     Defined at security/selinux/Kconfig:26
     Depends on: SECURITY_SELINUX [=y]
     Selects: SECURITY_WRITABLE_HOOKS [=n]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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