ptserver: Check for -restricted in SPR_Delete 74/13374/4
authorAndrew Deason <adeason@sinenomine.net>
Sat, 3 Nov 2018 06:04:43 +0000 (01:04 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Sat, 9 Feb 2019 21:40:23 +0000 (16:40 -0500)
commit2e556c0f23ae439c804352cf51fcf30878b03c7a
treef43d65d511299eb3aee4e8031a455536a3b37f45
parentbfe912ede6f452d10cfbd5fd549f44ee027acb1b
ptserver: Check for -restricted in SPR_Delete

Currently, all prdb write operations, except for SPR_Delete, will fail
with PRPERM if called by a non-system:administrators caller while
restricted mode is active.  SPR_Delete is missing this check, and so
is not affected by the -restricted option.

Fix this by inserting the same check for -restricted as all other code
paths that check for -restricted.

Change-Id: I35f19d0b715423cd91769e6de845efa330368e50
Reviewed-on: https://gerrit.openafs.org/13374
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/ptserver/ptprocs.c