committed by
Lennart Poettering
parent
cf94f513f0
commit
64e03ca8bf
@@ -704,11 +704,11 @@ int manager_start(Manager *m) {
|
||||
* Drop the capabilities here, regardless if the load succeeds or not. */
|
||||
r = drop_capability(CAP_SYS_ADMIN);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to drop CAP_SYS_ADMIN: %m, ignoring.");
|
||||
log_warning_errno(r, "Failed to drop CAP_SYS_ADMIN, ignoring: %m.");
|
||||
|
||||
r = drop_capability(CAP_BPF);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to drop CAP_BPF: %m, ignoring.");
|
||||
log_warning_errno(r, "Failed to drop CAP_BPF, ignoring: %m.");
|
||||
|
||||
manager_set_sysctl(m);
|
||||
|
||||
|
||||
@@ -28,12 +28,12 @@
|
||||
#include "bpf/sysctl_monitor/sysctl-monitor-skel.h"
|
||||
#include "bpf/sysctl_monitor/sysctl-write-event.h"
|
||||
|
||||
static struct sysctl_monitor_bpf *sysctl_monitor_bpf_free(struct sysctl_monitor_bpf *obj) {
|
||||
static struct sysctl_monitor_bpf* sysctl_monitor_bpf_free(struct sysctl_monitor_bpf *obj) {
|
||||
sysctl_monitor_bpf__destroy(obj);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static struct ring_buffer *rb_free(struct ring_buffer *rb) {
|
||||
static struct ring_buffer* rb_free(struct ring_buffer *rb) {
|
||||
sym_ring_buffer__free(rb);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user