X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2Fcaps.c;h=3c9f50f48be87051c57c002ba405abe7e9a97711;hb=f4b9208889cfca5eeb1432b3ce3f02fb305d6e81;hp=2d0f39a0342614568f7308b4fe9a9930f8a87c6f;hpb=aedd4e87362371d83dd64d0bfb03ea3e5526607f;p=catta diff --git a/avahi-daemon/caps.c b/avahi-daemon/caps.c index 2d0f39a..3c9f50f 100644 --- a/avahi-daemon/caps.c +++ b/avahi-daemon/caps.c @@ -39,8 +39,8 @@ int avahi_caps_reduce(void) { static cap_value_t cap_values[] = { CAP_SYS_CHROOT, CAP_SETUID, CAP_SETGID }; /* Let's reduce our caps to the minimum set and tell Linux to keep - * them accross setuid(). This is called before we droppped - * priviliges. */ + * them across setuid(). This is called before we drop + * privileges. */ caps = cap_init(); assert(caps); @@ -55,7 +55,7 @@ int avahi_caps_reduce(void) { } cap_free(caps); - /* Retain capabilities accros setuid() */ + /* Retain capabilities across setuid() */ if (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) < 0) { avahi_log_error("prctl(PR_SET_KEEPCAPS) failed: %s", strerror(errno)); ret = -1; @@ -70,8 +70,8 @@ int avahi_caps_reduce2(void) { static cap_value_t cap_values[] = { CAP_SYS_CHROOT }; /* Reduce our caps to the bare minimum and tell Linux not to keep - * them across setuid(). This is called after we dropped - * privilige. */ + * them across setuid(). This is called after we drop + * privileges. */ /* No longer retain caps across setuid() */ if (prctl(PR_SET_KEEPCAPS, 0, 0, 0, 0) < 0) {