フォーラム: Open Discussion (スレッド #16296)

make TOMOYO boot quickly (2007-09-30 09:11 by 匿名 #32572)


1. make TOMOYO boot quickly

it would be a waste of time to wait 10 seconds for the disable input at boot time:

TOMOYO Linux: Enter 'disable' within 10 seconds to disable TOMOYO Linux.
TOMOYO Linux>

maybe a boot parameter like tomoyo=noprompt to bypass disable prompt with TOMOYO enabled by default:

# setup GRUB menu

title LFS 6.3 Kernel 2.6.22.9-cfs-v22-ccs
kernel (hd0,7)/boot/lfskernel-2.6.22.9-cfs-v22-ccs root=/dev/hda8 vga=791 video=vesafb:ywrap
,mtrr acpi=off tomoyo=noprompt

2. there is a same problem with ccs-queryd :

if 'a' is the user input, wait for an Enter.
maybe having a command line option like 'ccs-queryd -a` to bypass the Enter.

メッセージ #32572 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE: make TOMOYO boot quickly (2007-09-30 09:55 by haradats #32573)

Hi,

I've just forwarded your suggestions to the dev-ml. We will talk about and I'll report you the result here.

thank you.
#32572 への返信

メッセージ #32573 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE boot: make TOMOYO boot quickly (2007-09-30 10:19 by 匿名 #32574)

I just looked into the ccs-init file, there's boot option CCS=$profile_select already, and it works well:
......
Calling /sbin/ccs-init to load policy. Please wait.
Clocksource tsc unstable (delta = 296800939 ns)
Time: pit clocksource has been installed.
Allow mount fuseblk on /mnt/hda1/ with options 0x406.
SAKURA: 1.5.0 2007/09/20
TOMOYO: 1.5.0 2007/09/20
Mandatory Access Control activated.
......

it will be convenient for user to put this feature clearly in the inatallation document.
#32572 への返信

メッセージ #32574 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE: RE boot: make TOMOYO boot quickly (2007-09-30 10:30 by haradats #32575)

> it will be convenient for user to put this feature clearly in the inatallation document.

good point. we willsurely do so.

regarding the system boot prompt, the simplest workaround is modifying the following script. (jfyi)

http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/trunk/1.5.x/ccs-tools/ccstools/ccs-init?rev=502&root=tomoyo&view=markup
#32574 への返信

メッセージ #32575 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE doc: make TOMOYO boot quickly (2007-09-30 10:52 by 匿名 #32577)

ccs-init is not need to be modified indeed.

# GRUB menu
title LFS 6.3 Kernel 2.6.22.9-cfs-v22-ccs
kernel (hd0,7)/boot/lfskernel-2.6.22.9-cfs-v22-ccs root=/dev/hda8 vga=791 video=neofb:ywrap,mtrr acpi=off CCS=file

this menu will make TOMOYO load /etc/ccs/profile-file.conf without 10 seconds being wasted. ccs-init is very clever working in this way . it would be better to tell the user in the installation document:

1. prepare /etc/ccs/profile-$profile_select.conf first.
2. then use CCS=$profile_select in the boot menu.

#32572 への返信

メッセージ #32577 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE CCS=default: make TOMOYO boot quickly (2007-09-30 11:01 by 匿名 #32578)

3. a simple notice like:

CCS=default load /etc/ccs/profile.conf
CCS=disabled disable TOMOYO, works as usual
CCS=boottest <what this mean go here>

#32572 への返信

メッセージ #32578 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE: RE CCS=default: make TOMOYO boot quickly (2007-09-30 12:21 by kumaneko #32579)

> CCS=boottest <what this mean go here>
You can use it when you don't have /etc/ccs/profile.conf .
Current document asks you to run /usr/lib/ccs/init_policy.sh
to create /etc/ccs/profile.conf before rebooting with TOMOYO Linux's kernel,
thus "CCS=boottest" is no longer needed.
#32578 への返信

メッセージ #32579 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE: make TOMOYO boot quickly (2007-10-01 13:51 by kumaneko #32599)

> 1. make TOMOYO boot quickly
>
> it would be a waste of time to wait 10 seconds for the disable input at boot time:

In embedded systems, it it difficult to modify kernel commandline;
some systems have to embed commandline at kernel compilation time.
Thus, it is more convenient for embedded systems to be able to
select access control mode at runtime.

I don't want to modify kernel's commandline.
If you prefer 'not to show prompt by default'
and 'show prompt only if "CCS=ask" is given at kernel commandline',
it is possible to modify so.
In that case, will the timeout feature become unneeded?



> 2. there is a same problem with ccs-queryd :
>
> if 'a' is the user input, wait for an Enter.
> maybe having a command line option like 'ccs-queryd -a` to bypass the Enter.

It is impossible to bypass Enter key for 'a'
because ccs-queryd allows you to edit a line (to make patterns if you want)
before appending the line into policy.
#32572 への返信

メッセージ #32599 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE ask: make TOMOYO boot quickly (2007-10-01 15:57 by 匿名 #32602)

1. if embedded system could not set CCS boot parameter for kernel commandline, it has to wait for the prompt, while ordinary system need not wait for the prompt.

console uses vga=ask boot option, it list some vga mode to select from. CCS=ask could follow this way: list each available /etc/profile*.conf as choice and a diable as the last choice.

and after anything other than default especially the disable being selected, what about let TOMOYO chanlenge the user for root password?

drivers/video/console/Kconfig:

config VIDEO_SELECT
bool "Video mode selection support"
depends on X86 && VGA_CONSOLE
---help---
This enables support for text mode selection on kernel startup. If
you want to take advantage of some high-resolution text mode your
card's BIOS offers, but the traditional Linux utilities like
SVGATextMode don't, you can say Y here and set the mode using the
"vga=" option from your boot loader (lilo or loadlin) or set
"vga=ask" which brings up a video mode menu on kernel startup. (Try
"man bootparam" or see the documentation of your boot loader about
how to pass options to the kernel.)



2. I suggest add a command line option for ccs-queryd, for example '-a'

if run "ccs-queryd" without -a as option just stop and let user edit if necessary. if run "ccs-queryd -a" with option -a, no edit any more.
#32572 への返信

メッセージ #32602 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE: RE ask: make TOMOYO boot quickly (2007-10-01 17:25 by kumaneko #32604)

Like this?
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=tomoyo&view=rev&rev=527
(Please rename ccs-init-test to ccs-init before reboot.)
#32602 への返信

メッセージ #32604 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE: RE ask: make TOMOYO boot quickly (2007-10-15 20:33 by kumaneko #32779)

メッセージ #32779 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

RE CCS=ask: make TOMOYO boot quickly (2007-10-02 15:58 by 匿名 #32620)

bash-3.2# ls pro*
profile-ccs.conf profile.conf profile-file.conf
bash-3.2#

boot time TOMOYO prompt:

TOMOYO Linux: Select a profile from the following lists.
default
ccs file
disable
>
#32572 への返信

メッセージ #32620 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする