Use UID_ROOT and GID_WHEEL for uid/gid argments to make_dev().

Remove the setgid bit from the tga device (?).
Synchronize mode with modes used for related frame buffer devices
in MAKEDEV (tga doesn't appear in MAKEDEV).

Submitted by:	kris
This commit is contained in:
rwatson 2002-12-27 16:44:11 +00:00
parent c4c3d27cd6
commit 2d0812316b

View File

@ -190,7 +190,8 @@ tga_attach(device_t dev)
}
#ifdef FB_INSTALL_CDEV
sc->cdevsw = &tga_cdevsw;
sc->devt = make_dev(sc->cdevsw, unit, 0, 0, 02660, "tga%x", unit);
sc->devt = make_dev(sc->cdevsw, unit, UID_ROOT, GID_WHEEL, 0600,
"tga%x", unit);
#endif /* FB_INSTALL_CDEV */
goto done;
fail: