Skip to contentSkip to conversation

kudzu needs to init_telinit to change its runlevel

PATCH Daniel J Walsh 3 participants 5 messages Mar 8, 2007 – Mar 20, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw
policy/modules/admin/kudzu.te +1 -0
@@ -103,6 +103,7 @@
 init_use_fds(kudzu_t)
 init_use_script_ptys(kudzu_t)
 init_stream_connect_script(kudzu_t)
+init_telinit(kudzu_t)
 
 libs_use_ld_so(kudzu_t)
 libs_use_shared_libs(kudzu_t)
#1 lore raw

policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 line 109

Quoted 10 lines · Daniel J Walsh
policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 renamed from policy/modules/admin/kudzu.te 2007-01-02 12:57:51.000000000 -0500 +1 -0
@@ -103,6 +103,7 @@
 init_use_fds(kudzu_t)
 init_use_script_ptys(kudzu_t)
 init_stream_connect_script(kudzu_t)
+init_telinit(kudzu_t)
 
 libs_use_ld_so(kudzu_t)
 libs_use_shared_libs(kudzu_t)

This seems odd to me. Why would kudzu need to change the runlevel? I thought it just detected and configured hardware.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 10 lines · Christopher J. PeBenito
Quoted 8 lines · Daniel J Walsh
policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 renamed from policy/modules/admin/kudzu.te 2007-01-02 12:57:51.000000000 -0500 +1 -0
@@ -103,6 +103,7 @@
 init_use_fds(kudzu_t)
 init_use_script_ptys(kudzu_t)
 init_stream_connect_script(kudzu_t)
+init_telinit(kudzu_t)
 
Quoted 6 lines

policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 line 109

Quoted 2 lines
policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 renamed from policy/modules/admin/kudzu.te 2007-01-02 12:57:51.000000000 -0500 +0 -0
 libs_use_ld_so(kudzu_t)
 libs_use_shared_libs(kudzu_t)

This seems odd to me. Why would kudzu need to change the runlevel? I thought it just detected and configured hardware.

If it detects a serial console, and I assume tty devices in general, it updates /etc/inittab and then wants to signal init via telinit to cause init to re-read the inittab. Its not changing run level, just causing inittab to be re-read.

Without this change we didn't get login prompts on serial consoles on the first boot a system.

-- ljk

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 18 lines · Linda Knippers
Quoted 10 lines · Christopher J. PeBenito
Quoted 8 lines · Daniel J Walsh
policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 renamed from policy/modules/admin/kudzu.te 2007-01-02 12:57:51.000000000 -0500 +1 -0
@@ -103,6 +103,7 @@
 init_use_fds(kudzu_t)
 init_use_script_ptys(kudzu_t)
 init_stream_connect_script(kudzu_t)
+init_telinit(kudzu_t)
 
Quoted 6 lines

policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 line 109

Quoted 2 lines
policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 renamed from policy/modules/admin/kudzu.te 2007-01-02 12:57:51.000000000 -0500 +0 -0
 libs_use_ld_so(kudzu_t)
 libs_use_shared_libs(kudzu_t)

This seems odd to me. Why would kudzu need to change the runlevel? I thought it just detected and configured hardware.

Quoted 7 lines

If it detects a serial console, and I assume tty devices in general, it updates /etc/inittab and then wants to signal init via telinit to cause init to re-read the inittab. Its not changing run level, just causing inittab to be re-read.

Without this change we didn't get login prompts on serial consoles on the first boot a system.

Thanks for the description. Merged.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 26 lines · Christopher J. PeBenito
Quoted 24 lines · Linda Knippers
Quoted 11 lines · Christopher J. PeBenito
Quoted 8 lines · Daniel J Walsh
policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 renamed from policy/modules/admin/kudzu.te 2007-01-02 12:57:51.000000000 -0500 +1 -0
@@ -103,6 +103,7 @@
 init_use_fds(kudzu_t)
 init_use_script_ptys(kudzu_t)
 init_stream_connect_script(kudzu_t)
+init_telinit(kudzu_t)
 
Quoted 6 lines

policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 line 109

Quoted 3 lines
policy/modules/admin/kudzu.te 2007-03-08 08:42:36.000000000 -0500 renamed from policy/modules/admin/kudzu.te 2007-01-02 12:57:51.000000000 -0500 +0 -0
 libs_use_ld_so(kudzu_t)
 libs_use_shared_libs(kudzu_t)

This seems odd to me. Why would kudzu need to change the runlevel? I thought it just detected and configured hardware.

If it detects a serial console, and I assume tty devices in general, it updates /etc/inittab and then wants to signal init via telinit to cause init to re-read the inittab. Its not changing run level, just causing inittab to be re-read.

Quoted 7 lines
Quoted 3 lines

Without this change we didn't get login prompts on serial consoles on the first boot a system.

Thanks for the description. Merged.

Thanks Linda.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.