Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SELinux: checkpolicy fails to build
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
juliedeville
n00b
n00b


Joined: 14 Oct 2024
Posts: 35

PostPosted: Sun Nov 03, 2024 12:34 am    Post subject: SELinux: checkpolicy fails to build Reply with quote

I am in the process of installing SELinux on my system, and when trying to merge selinux-base, I get this error when it compiles checkpolicy

Code:
policy_define.c: In function ‘clone_level’:
policy_define.c:1009:27: error: ‘level_datum_t’ {aka ‘struct level_datum’} has no member named ‘defined’; did you mean ‘notde
fined’?
 1009 |                 levdatum->defined = 1;
      |                           ^~~~~~~
      |                           notdefined
policy_define.c: In function ‘define_level’:
policy_define.c:1060:19: error: ‘level_datum_t’ {aka ‘struct level_datum’} has no member named ‘defined’; did you mean ‘notde
fined’?
 1060 |         levdatum->defined = 1;
      |                   ^~~~~~~
      |                   notdefined
checkpolicy.c: In function ‘check_level’:
checkpolicy.c:373:46: error: ‘level_datum_t’ {aka ‘struct level_datum’} has no member named ‘defined’; did you mean ‘notdefin
ed’?
  373 |         if (!levdatum->isalias && !levdatum->defined) {      |                                              ^~~~~~~
      |                                              notdefined
make: *** [Makefile:39: checkpolicy.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:39: policy_define.o] Error 1
 * ERROR: sys-apps/checkpolicy-3.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-apps/checkpolicy-3.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/checkpolicy-3.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/checkpolicy-3.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/checkpolicy-3.6/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/checkpolicy-3.6/work/checkpolicy-3.6'
 * S: '/var/tmp/portage/sys-apps/checkpolicy-3.6/work/checkpolicy-3.6'

>>> Failed to emerge sys-apps/checkpolicy-3.6, Log file:

>>>  '/var/tmp/portage/sys-apps/checkpolicy-3.6/temp/build.log'

 * Messages for package sys-apps/checkpolicy-3.6:

 * ERROR: sys-apps/checkpolicy-3.6::gentoo failed (compile phase):
 *   emake failed
 *


To my knowledge, I have performed the previous steps correctly, and I am booted from a kernel without SELinux enabled.

[Administrator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
nicop
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2014
Posts: 97

PostPosted: Sun Nov 03, 2024 11:49 pm    Post subject: Reply with quote

What SELINUXTYPE have you defined ?

Are you in "Installing policies and utilities, part one" or "Installing policies and utilities, part two" : https://wiki.gentoo.org/wiki/SELinux/Installation ?
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