Re: [Bug 276777] Enabling BSM/audit security can prevent root login
Peter Pentchev <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.standards |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 06, 2024 at 12:33:54AM +0000, [email protected] wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276777 > > --- Comment #1 from Tim Hogard <[email protected]> --- > It appears this was due to older flags in /etc/security/audit_control > If the old Solaris flags were added, specifically ua and pm, and since they > aren't in /etc/security/audit_class, the audit mask isn't created and since it > isn't created, root can't log in on the console. > > I think the login code should allow root to login in the case of a bad (or > undefined) audit mask to prevent being locked out of a system. [snip discussion of alternative ways, like adding support for the Sun flags] Hmm, I could be wrong here, I have not really used the audit facility, but if managing to corrupt the audit control file could lead to being able to log in as root, even if the previous configuration disallowed that for some cases, would that not introduce a new attack vector? G'luck, Peter -- Peter Pentchev [email protected] [email protected] [email protected] PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmXBg4gACgkQZR7vsCUn 3xNvyA//XtB6T43qAiQ3W07gobddIv9XnRoRJQSKXg4QvkL2GPGsTGXPHZZbtz5j 8RnbLW5bwB0c71KcCXsmbBTf5/y+wC8dpfl/DPqLuFMk/LlKqXlQBm1/iHKu/4ru jnpqxb87oLQeEri4YjZZFbuSPt0jDoWARhauPsQFeBFwebCBo5uw7I27cBZik7wq Ac0/Ckjkeo5xcFKEoCLKCkW6zPNRo3v4XHs0bKD5BaNr7/7aseuR1h+ZSpxmd7Ia 9VmGZrAxKzmGEvd3EASPTCbYTkFEPC1t/IFRwW6Neo34gMdt9cSmEyvx7/ISo8pz p8xBwe36SKwMeYCZuCjPe6/ihtWhrxBYvHBvXnEwhjLvC8xc14FEro+RXuZVeRIE 56YLqvc/xM6D2AX7vDFUdmbdS/xxEiPXwu+zfiQxptNYhLuMYFcYe5FAvbsCqr5D UjKk408Mm3HhjhI885paficQ6CtMA1bXHzK/VOoWrJjd9pY3TMa1ShysTZKG0GSr kTb0gPqcc34cE0YjHoUkWVVmaJcL8y8ksRMAlMUWcnTeINGjVAmxWiohPkZowPEh u/hfRjNZ23emc0yLrt+juF7lOHLcsx3cQ0OYjnjmqo8UIYpZUb3OGuvjRaohZ5cu y6L3rkuZ9b3R2iBd2nlXfEdPSeZO7ruLeFlH9qLCMcstsKJ7NHw= =+hG0 -----END PGP SIGNATURE-----