1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Only allow root to attach/detach/etc ATA/ATAPI devices.

This commit is contained in:
Søren Schmidt 2001-03-19 11:55:13 +00:00
parent 71a71d575f
commit 895fd69a76
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74460

View File

@ -1258,7 +1258,7 @@ static void
ata_init(void)
{
/* register controlling device */
make_dev(&ata_cdevsw, 0, UID_ROOT, GID_OPERATOR, 0666, "ata");
make_dev(&ata_cdevsw, 0, UID_ROOT, GID_OPERATOR, 0600, "ata");
/* register boot attach to be run when interrupts are enabled */
if (!(ata_delayed_attach = (struct intr_config_hook *)