Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84958 - Default inittab ( sys-apps/baselayout ) allows EVERYONE to reboot with Ctrl-Alt-Delete
Summary: Default inittab ( sys-apps/baselayout ) allows EVERYONE to reboot with Ctrl-A...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Default Configs (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-12 03:34 UTC by Nikolas Garofil
Modified: 2005-03-12 11:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolas Garofil 2005-03-12 03:34:06 UTC
Everyone can reboot the computer with ctrl-alt-delete, even without logging in.
This can be fixed by removing the rule "ca:12345:ctrlaltdel:/sbin/shutdown -r now" in /etc/inittab.
I suggest to remove this rule in the default configuration.

Reproducible: Always
Steps to Reproduce:
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2005-03-12 05:54:17 UTC
> Everyone can reboot the computer with ctrl-alt-delete, even without logging in.

Not Everyone, you would have to be at the system console. 

And if you are at the system console, there are other things you can do as well, such as print a stack trace, register dump, view memory stats, change current console, use the Magic-Sysrq-Key, view scrollback buffer, Kill any X Session (default is Zap enabled), etc. These actions are not considered a security issue for users with physical access.

Users who have access to the console are also granted privilges they would not normally be permitted..by default it's considered that a user with access to the system console is entitled to certain "extra" privieleges, they're so-called "console users" (for example, access to cdrom device..see console.perms console.apps man pages)...after all, as many computer security texts will explain, if an attacker has physical access to the target, all bets are off :)

> This can be fixed by removing the rule "ca:12345:ctrlaltdel:/sbin/shutdown -r now" in /etc/inittab.

That would stop the "soft" ctrlaltdel behaviour from doing anything. It would also prevent legitimate logged in users from rebooting the system (except root). Changing the command to use shutdown.allow might be a better solution for you. If you want to disable the "hard" reboot behaviour, you would have to remove the Boot keybinding from the keymap file.

also, If you have magic-sysrq key enabled, you would also have to totally disable it's use via the sysctl. 

> I suggest to remove this rule in the default configuration.

I think that is a really bad idea, this is expected behaviour and pages and pages of documentation would have to be modified, confusing a lot of users and administrators. I think you have a very unusual setup where a reboot by users with physical access is considered a security problem.

There is lots of documentation available explaining how to change this behaviour if it's not suitable for you, and the inittab entry is pretty self-explanatory for administrators who want to change it.
Comment 2 Dan Margolis (RETIRED) gentoo-dev 2005-03-12 08:44:43 UTC
I side with Tavis on this. It's a rare setup where a user sitting at the console cannot simply unplug the machine. In such a setup, it takes about two minutes to change this behavior. 

I hate to be the one to do so, but can we close this as INVALID/WONTFIX? I simply don't see this as poor default behavior. 
Comment 3 SpanKY gentoo-dev 2005-03-12 11:14:15 UTC
agreed

local access -> you can forget about security ;P