Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/syslogd/syslogd_cap.h
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| #include <sys/capsicum.h> | #include <sys/capsicum.h> | ||||
| #include <sys/dnv.h> | #include <sys/dnv.h> | ||||
| #include <capsicum_helpers.h> | #include <capsicum_helpers.h> | ||||
| #include <libcasper_service.h> | #include <libcasper_service.h> | ||||
| #include "syslogd.h" | #include "syslogd.h" | ||||
| /* | |||||
| * Log file data used by the casper process to | |||||
| * verify filed integrity. | |||||
markj: I don't quite understand what this comment is referring to. | |||||
jfreeAuthorUnsubmitted Done Inline Actions
It is referring to the cap_filed structure, which is supposed to hold information that verifies the integrity of a particular filed based on its pipe_cmd and index in the fhead list. Perhaps the wording could be a little bit more clear. jfree: > I don't quite understand what this comment is referring to.
It is referring to the cap_filed… | |||||
| */ | |||||
| struct cap_filed { | |||||
| size_t idx; | |||||
| char pipe_cmd[MAXPATHLEN]; | |||||
| SLIST_ENTRY(cap_filed) next; | |||||
| }; | |||||
| extern SLIST_HEAD(cfiled_list, cap_filed) cfiled_head; | |||||
| int cap_p_open(cap_channel_t *, size_t, const char *, int *); | |||||
| nvlist_t *cap_readconfigfile(cap_channel_t *, const char *); | nvlist_t *cap_readconfigfile(cap_channel_t *, const char *); | ||||
| const char *cap_ttymsg(cap_channel_t *, struct iovec *, int, const char *, int); | |||||
| void cap_wallmsg(cap_channel_t *, const struct filed *, struct iovec *, | |||||
| const int); | |||||
| int casper_p_open(nvlist_t *, nvlist_t *); | |||||
| int casper_readconfigfile(nvlist_t *, nvlist_t *); | int casper_readconfigfile(nvlist_t *, nvlist_t *); | ||||
| int casper_ttymsg(nvlist_t *, nvlist_t *); | |||||
| int casper_wallmsg(nvlist_t *); | |||||
| nvlist_t *filed_to_nvlist(const struct filed *); | nvlist_t *filed_to_nvlist(const struct filed *); | ||||
| nvlist_t *prop_filter_to_nvlist(const struct prop_filter *pfilter); | nvlist_t *prop_filter_to_nvlist(const struct prop_filter *pfilter); | ||||
| struct filed *nvlist_to_filed(const nvlist_t *); | struct filed *nvlist_to_filed(const nvlist_t *); | ||||
| struct prop_filter *nvlist_to_prop_filter(const nvlist_t *nvl_prop_filter); | struct prop_filter *nvlist_to_prop_filter(const nvlist_t *nvl_prop_filter); | ||||
| #else /* !WITH_CASPER */ | #else /* !WITH_CASPER */ | ||||
| #define cap_p_open(chan, f, rpd) \ | |||||
| p_open(f, rpd) | |||||
| #define cap_readconfigfile(chan, cf) \ | #define cap_readconfigfile(chan, cf) \ | ||||
| readconfigfile(cf) | readconfigfile(cf) | ||||
| #define cap_ttymsg(chan, iov, iovcnt, line, tmout) \ | |||||
| ttymsg(iov, iovcnt, line, tmout) | |||||
| #define cap_wallmsg(chan, f, iov, iovcnt) \ | |||||
| wallmsg(f, iov, iovcnt) | |||||
| #endif /* WITH_CASPER */ | #endif /* WITH_CASPER */ | ||||
| #endif /* !_SYSLOGD_CAP_H_ */ | #endif /* !_SYSLOGD_CAP_H_ */ | ||||
I don't quite understand what this comment is referring to.