<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/comsat, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-07-28T15:28:59Z</updated>
<entry>
<title>comsat: Don't return from the child</title>
<updated>2025-07-28T15:28:59Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-07-28T15:28:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e40a2c4927a8068d7b6adee69c90ae3be8efc4df'/>
<id>urn:sha1:e40a2c4927a8068d7b6adee69c90ae3be8efc4df</id>
<content type='text'>
Fixes:		91629228e3df
MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D51581
</content>
</entry>
<entry>
<title>comsat: Don't read arbitrary files</title>
<updated>2025-07-28T15:28:59Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-07-28T15:28:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4a4338d94401f0012380d4f1a4d332bd6d44fa8e'/>
<id>urn:sha1:4a4338d94401f0012380d4f1a4d332bd6d44fa8e</id>
<content type='text'>
When processing a notification, instead of accepting any file name
that doesn't begin with a slash, accept only file names that don't
contain any slashes at all.  This makes it possible to notify a
user about a mailbox that doesn't bear their name, as long as they
are permitted to read it, but prevents comsat from reading files
outside the mail spool.

PR:		270404
MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D51580
</content>
</entry>
<entry>
<title>comsat: move uid/gid setting earlier</title>
<updated>2024-12-02T19:57:13Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-12-01T20:43:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=91629228e3df14997df12ffc6e7be6b9964e5463'/>
<id>urn:sha1:91629228e3df14997df12ffc6e7be6b9964e5463</id>
<content type='text'>
It's good to reduce privilege as early as possible.

Suggested by:	jlduran
Reviewed by:	jlduran
Obtained from:	NetBSD
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47869
</content>
</entry>
<entry>
<title>comsat: Use initgroups and setgid not just setuid</title>
<updated>2024-12-01T20:29:02Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-11-28T16:54:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d4dd9e22c13896e6b5e2a6fc78dad4f8496cc14d'/>
<id>urn:sha1:d4dd9e22c13896e6b5e2a6fc78dad4f8496cc14d</id>
<content type='text'>
PR:		270404
Reviewed by:	jlduran
Obtained from:	NetBSD
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47828
</content>
</entry>
<entry>
<title>comsat: Improve use of setuid()</title>
<updated>2024-11-28T13:04:10Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-11-27T20:36:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=062b69ba045dc0fef3d9b8d73365d2798c05a480'/>
<id>urn:sha1:062b69ba045dc0fef3d9b8d73365d2798c05a480</id>
<content type='text'>
Just return from jkfprintf if either (a) user lookup fails (that is,
getpwnam fails) or (b) setuid() to the user's uid fails.  If comsat is
invoked from inetd using the default of tty:tty we will now return due
to setuid() failing rather than fopen() failing.

PR:		270404
Reviewed by:	kevans
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47823
</content>
</entry>
<entry>
<title>Remove residual blank line at start of Makefile</title>
<updated>2024-07-15T22:43:39Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-07-15T04:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9ac41698b2f322d55ccf9da50a3596edb2c1800'/>
<id>urn:sha1:e9ac41698b2f322d55ccf9da50a3596edb2c1800</id>
<content type='text'>
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
</content>
</entry>
<entry>
<title>Remove copyright strings ifdef'd out</title>
<updated>2023-11-27T05:23:58Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-11-24T07:45:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0b8224d1cc9dc6c9778ba04a75b2c8d47e5d7481'/>
<id>urn:sha1:0b8224d1cc9dc6c9778ba04a75b2c8d47e5d7481</id>
<content type='text'>
We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).

Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>libexec: Remove ancient SCCS tags.</title>
<updated>2023-11-27T05:23:28Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-11-23T17:21:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=43581d7b6617959e4452094d9330ef020034a6c9'/>
<id>urn:sha1:43581d7b6617959e4452094d9330ef020034a6c9</id>
<content type='text'>
Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>Purge more stray embedded $FreeBSD$ strings</title>
<updated>2023-09-25T14:54:56Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-09-25T14:54:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=eba230afba4932f02a1ca44efc797cf7499a5cb0'/>
<id>urn:sha1:eba230afba4932f02a1ca44efc797cf7499a5cb0</id>
<content type='text'>
These do not use __FBSDID but instead use bare char arrays.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D41957
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line nroff pattern</title>
<updated>2023-08-16T17:55:15Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b2c76c41be32f904179efed29c0ca04d53f3996c'/>
<id>urn:sha1:b2c76c41be32f904179efed29c0ca04d53f3996c</id>
<content type='text'>
Remove /^\.\\"\s*\$FreeBSD\$$\n/
</content>
</entry>
</feed>
