Changeset 6f076e7 in code for icbd.c


Ignore:
Timestamp:
Sep 21, 2016, 8:45:32 PM (9 years ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
36f8e7c, 5ea93bc
Parents:
67f3e60 (diff), 411aa63 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Mike Belopuhov <mbelop@…> (09/21/16 20:45:32)
git-committer:
GitHub <noreply@…> (09/21/16 20:45:32)
Message:

Merge pull request #3 from timkuijsten/pledge

pledge icbd and it's logger process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icbd.c

    r67f3e60 r6f076e7  
    504504        }
    505505
     506        if (dodns) {
     507                if (pledge("stdio inet rpath dns", NULL) == -1) {
     508                        syslog(LOG_ERR, "pledge");
     509                        exit(EX_NOPERM);
     510                }
     511        } else {
     512                if (pledge("stdio inet rpath", NULL) == -1) {
     513                        syslog(LOG_ERR, "pledge");
     514                        exit(EX_NOPERM);
     515                }
     516        }
     517
    506518        (void)setproctitle("icbd");
    507519}
Note: See TracChangeset for help on using the changeset viewer.