Skip to content

Commit

Permalink
allow stat and folder creation of superfolders according to specs in h…
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 13, 2024
1 parent 445e69b commit c3ac3ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/XrdSciTokens/XrdSciTokensAccess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ class XrdAccRules
if ((oper == rule.first) && !path.compare(0, rule.second.size(), rule.second, 0, rule.second.size()) && ( rule.second.size() == path.length() || path[rule.second.size()]=='/') ) {
return true;
}
// pass the scope if the operation is stat of mkdir
if ((oper == rule.first) && (oper == AOP_Stat || oper == AOP_Mkdir) && rule.second.size() >= path.length() && !rule.second.compare(0, path.size(), path, 0, path.size()) && (rule.second.size() == path.length() || rule.second[path.length()] == '/') ) {
return true;
}
}
return false;
}
Expand Down

0 comments on commit c3ac3ad

Please sign in to comment.