FreeBSD Bugzilla – Attachment 243439 Details for
Bug 272552
Fix /var/log/messages and /var/run/dmesg.boot permissions when disabling read_msgbuf in the installer's hardening menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix /var/log/messages and /var/run/dmesg.boot permissions
dmesg-messages-permissions.patch (text/plain), 2.00 KB, created by
Jose Luis Duran
on 2023-07-17 20:46:23 UTC
(
hide
)
Description:
Fix /var/log/messages and /var/run/dmesg.boot permissions
Filename:
MIME Type:
Creator:
Jose Luis Duran
Created:
2023-07-17 20:46:23 UTC
Size:
2.00 KB
patch
obsolete
>diff --git libexec/rc/rc.d/dmesg libexec/rc/rc.d/dmesg >index 3da6196b6ff..12002e63187 100755 >--- libexec/rc/rc.d/dmesg >+++ libexec/rc/rc.d/dmesg >@@ -20,7 +20,7 @@ stop_cmd=":" > do_dmesg() > { > rm -f ${dmesg_file} >- ( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} ) >+ ( umask 002 ; /sbin/dmesg $rc_flags > ${dmesg_file} ) > } > > load_rc_config $name >diff --git usr.bin/tail/tail.1 usr.bin/tail/tail.1 >index 59b632868db..cc6318a639e 100644 >--- usr.bin/tail/tail.1 >+++ usr.bin/tail/tail.1 >@@ -31,7 +31,7 @@ > .\" @(#)tail.1 8.1 (Berkeley) 6/6/93 > .\" $FreeBSD$ > .\" >-.Dd July 12, 2022 >+.Dd July 17, 2023 > .Dt TAIL 1 > .Os > .Sh NAME >@@ -167,7 +167,7 @@ Keep > .Pa /var/log/messages > open, displaying to the standard output anything appended to the file: > .Pp >-.Dl $ tail -F /var/log/messages >+.Dl # tail -F /var/log/messages > .Sh SEE ALSO > .Xr cat 1 , > .Xr head 1 , >diff --git usr.sbin/newsyslog/newsyslog.conf usr.sbin/newsyslog/newsyslog.conf >index 271e3a0a633..8750476584b 100644 >--- usr.sbin/newsyslog/newsyslog.conf >+++ usr.sbin/newsyslog/newsyslog.conf >@@ -26,7 +26,7 @@ > /var/log/init.log 644 3 1000 * J > /var/log/kerberos.log 600 7 1000 * J > /var/log/maillog 640 7 * @T00 JC >-/var/log/messages 644 5 1000 @0101T JC >+/var/log/messages 640 5 1000 @0101T JC > /var/log/monthly.log 640 12 * $M1D0 JN > /var/log/security 600 10 1000 * JC > /var/log/utx.log 644 3 * @01T05 B >diff --git usr.sbin/nologin/nologin.8 usr.sbin/nologin/nologin.8 >index a6be6ac249f..10c705b32c0 100644 >--- usr.sbin/nologin/nologin.8 >+++ usr.sbin/nologin/nologin.8 >@@ -28,7 +28,7 @@ > .\" @(#)nologin.8 8.1 (Berkeley) 6/19/93 > .\" $FreeBSD$ > .\" >-.Dd April 15, 2020 >+.Dd July 17, 2023 > .Dt NOLOGIN 8 > .Os > .Sh NAME >@@ -61,7 +61,7 @@ Here is a demonstration of executing > .Bd -literal -offset 4n > $ nologin > This account is currently not available. >-$ tail -n 1 /var/log/messages >+# tail -n 1 /var/log/messages > Mar 30 21:53:07 example.org nologin[65992]: Attempted login by beastie on /dev/pts/18 > .Ed > .Sh SEE ALSO
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 272552
:
243439
|
243440
|
243453