Ok, I think I have an approach here.
Access_Operation
values, AOP_Excl_Create
and AOP_Excl_Insert
.AOP_Create
and AOP_Insert
), then proceed as normal.XrdOfsFile::open
and XrdOfs::rename
.Doing this in XrdOfsFile::open
is easy given it already has the concept of O_EXCL
. I think we can handle XrdOfs::rename
by internally creating a file with O_EXCL
; if the thread successfully creates the file, then it is permitted to rename.
With this, all existing authorizations happen as normal (providing backward compatibility with existing operations) -- but any plugin aware of the newly-introduced operation can give a user additional authorization that wasn't there before.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1