Skip to contentSkip to conversation

strange issue with name-base type trans

DISCUSSION Dominick Grift 1 participant 1 message Feb 24, 2020 SELinux security module

lore
Share & tools
lore
#0 lore raw

The scenario:

(in user
(macro obj_type_transition_mytmp1 ((type ARG1)(class ARG2)) (call .file.tmp_obj_type_transition (ARG1 tmp ARG2 "thisworks"))) (macro obj_type_transition_mytmp2 ((type ARG1)(class ARG2)(name ARG3)) (call .file.tmp_obj_type_transition (ARG1 tmp ARG2 ARG3))))

(call .user.obj_type_transition_mytmp1 (user.subj chr_file)) (call .user.obj_type_transition_mytmp2 (user.subj chr_file "thisdoesntwork"))

The outcome:

[root@myguest ~]# sesearch -T -s user.subj -c chr_file,blk_file | grep tmp type_transition user.subj file.tmp:chr_file user.tmp ARG3; type_transition user.subj file.tmp:chr_file user.tmp thisworks;

[root@myguest ~]# uname -a
Linux myguest 5.5.5-200.fc31.x86_64 #1 SMP Wed Feb 19 23:28:07 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux [root@myguest ~]# rpm -qa libsepol
libsepol-3.0-3.fc32.x86_64
[root@myguest ~]# rpm -qa libselinux
libselinux-3.0-3.fc32.x86_64

Signature · 3 lines
gpg --locate-keys [email protected]
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6  E0FF DA7E 521F 10F6 4098
Dominick Grift