#
2269e292 |
| 09-Apr-2024 |
tobhe <tobhe@openbsd.org> |
Sync removal of setsid(), setpgid() and a few dup2() from relayd. They are redundant since we call daemon() earlier.
ok bluhm@
|
#
28fef5ef |
| 08-Apr-2024 |
tobhe <tobhe@openbsd.org> |
Call daemon() only in parent and before proc_exec() to avoid orphaning child processes. Synced from relayd.
ok florian@
|
#
e60163e5 |
| 16-Jan-2024 |
claudio <claudio@openbsd.org> |
Convert to imsg_get_fd() and remove unused proc_forward_imsg(). OK martijn@
|
#
a9292d2a |
| 21-Dec-2023 |
martijn <martijn@openbsd.org> |
Clean up snmpd's header situation.
With the help of tb@ and include-what-you-use.
OK tb@
|
#
c1868907 |
| 15-Feb-2023 |
tobhe <tobhe@openbsd.org> |
proc_ispeer() is not used anywhere anymore so remove it everywhere.
ok florian@ bluhm@ ok for vmd mlarkin@
|
#
62153df3 |
| 30-Jun-2020 |
martijn <martijn@openbsd.org> |
Remove agentx and control socket support.
snmpctl has been removed two releases ago, which makes the control interface obsolete.
agentx support has always been quirky at best, but got completely br
Remove agentx and control socket support.
snmpctl has been removed two releases ago, which makes the control interface obsolete.
agentx support has always been quirky at best, but got completely broken with the BER_MAX_OID_LEN increase in ber.h. This change resulted in the oid length on the snmp side being left uninitialized because of size difference, resulting in weird behaviour. No one reported the breakage, even after 6.7 was released.
This change requires users to remove the socket keyword from their snmpd.conf.
OK denis@
show more ...
|
#
9f020842 |
| 08-Jan-2019 |
bluhm <bluhm@openbsd.org> |
The child processes of snmpd(8) did not detach from the terminal. Dup /dev/null to the stdio file descriptors in the children. based on a fix for httpd(8) and relayd(8); from Jan Klemkow
|
#
4480d17b |
| 05-Aug-2018 |
mestre <mestre@openbsd.org> |
Remove cpath pledge(2) promise. We decided that not deleting the unix control sockets cause no harm and this way we close another attack surface by not allowing the daemon to create/delete any more f
Remove cpath pledge(2) promise. We decided that not deleting the unix control sockets cause no harm and this way we close another attack surface by not allowing the daemon to create/delete any more files.
While here also scramble pledge promises to their canonical form.
OK florian@
show more ...
|
#
566d2cad |
| 29-May-2017 |
benno <benno@openbsd.org> |
sync proc.c changes from relayd/httpd
|
#
7df7ca81 |
| 17-Jan-2017 |
krw <krw@openbsd.org> |
Nuke some whitespace that keeps poking me in the eye as I try to steal code.
|
#
871fc12c |
| 09-Jan-2017 |
reyk <reyk@openbsd.org> |
Stop accessing verbose and debug variables from log.c directly.
This replaces log_verbose() and "extern int verbose" with the two functions log_setverbose() and log_getverbose().
Pointed out by ben
Stop accessing verbose and debug variables from log.c directly.
This replaces log_verbose() and "extern int verbose" with the two functions log_setverbose() and log_getverbose().
Pointed out by benno@ OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
show more ...
|
#
7be2c8aa |
| 28-Oct-2016 |
rzalamena <rzalamena@openbsd.org> |
Sync snmpd(8) with other daemons proc.c and teach him how to fork+exec.
ok jca@, reyk@
|
#
66094308 |
| 07-Dec-2015 |
reyk <reyk@openbsd.org> |
Add imsg "peerid" to debug messages (only within -DDEBUG).
|
#
9ac7219f |
| 07-Dec-2015 |
reyk <reyk@openbsd.org> |
Sync proc.c, use proc_composev()
|
#
2c684640 |
| 05-Dec-2015 |
claudio <claudio@openbsd.org> |
EAGAIN handling for imsg_read. OK henning@ benno@
|
#
5f0d8540 |
| 23-Nov-2015 |
reyk <reyk@openbsd.org> |
Use SOCK_NONBLOCK to replace socket_set_blockmode() and fcntl(..O_NONBLOCK). (SOCK_CLOEXEC should also be added where it is appropriate, but this is OBnot done in this commit yet.)
OK claudio@
|
#
3f75f466 |
| 23-Nov-2015 |
reyk <reyk@openbsd.org> |
Sync proc.c with iked
|
#
0f12961a |
| 22-Nov-2015 |
reyk <reyk@openbsd.org> |
Update log.c: change fatal() and fatalx() into variadic functions, include the process name, and replace all calls of fatal*(NULL) with fatal(__func__) for better debugging.
OK benno@
|
#
32c142bf |
| 14-Oct-2015 |
reyk <reyk@openbsd.org> |
sync with httpd - no functional change, just C99 types
|
#
2fc3edb7 |
| 16-Dec-2014 |
millert <millert@openbsd.org> |
Replace setpgrp(0, getpid()) with setpgid(0, 0). OK deraadt@ tedu@
|
#
1543e3f7 |
| 25-Oct-2014 |
lteo <lteo@openbsd.org> |
Remove unnecessary netinet/in_systm.h include.
ok millert@
|
#
5f2be52b |
| 18-Aug-2014 |
reyk <reyk@openbsd.org> |
Sync proc.c with httpd. httpd needs SIGUSR1 but snmpd will ignore it now instead of terminating the process.
ok blambert@
|
#
2b721f23 |
| 12-Jul-2014 |
reyk <reyk@openbsd.org> |
Sync msgbuf_write() changes from relayd.
Please note that proc.c should be kept identical in relayd, iked and snmpd (currently without the includes).
ok benno@
|
#
1dbe1dbc |
| 08-May-2014 |
blambert <blambert@openbsd.org> |
Bring back restricted sockets, inadvertantly removed in previous proc.c update
ok reyk@
|
#
b294b307 |
| 06-May-2014 |
jsg <jsg@openbsd.org> |
no need to include rand.h now the RAND_seed() calls are gone. ok reyk@
|