Skip to content

Commit

Permalink
Add capsicum capability to remove files
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Oct 26, 2016
1 parent 1139681 commit db17245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ main(int argc, char **argv)
err(EXIT_FAILURE, "Impossible to open %s", argv[1]);

#ifdef HAVE_CAPSICUM
cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_FSTATFS, CAP_FSTATAT, CAP_FCNTL, CAP_CREATE, CAP_SEEK_TELL|CAP_FTRUNCATE);
cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_FSTATFS, CAP_FSTATAT, CAP_FCNTL, CAP_CREATE, CAP_SEEK_TELL|CAP_FTRUNCATE, CAP_UNLINKAT);
if (cap_rights_limit(fd, &rights) < 0 && errno != ENOSYS) {
warn("cap_rights_limit() failed");
close(fd);
Expand Down

0 comments on commit db17245

Please sign in to comment.