This file is indexed.

/usr/include/arc/security/ArcPDP/fn/MatchFunction.h is in nordugrid-arc-dev 5.0.5-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __ARC_SEC_MATCH_FUNCTION_H__
#define __ARC_SEC_MATCH_FUNCTION_H__

#include <arc/security/ArcPDP/fn/Function.h>
#include <arc/ArcRegex.h>

namespace ArcSec {

#define NAME_REGEXP_STRING_MATCH "regexp-string-match"
#define NAME_ANYURI_REGEXP_MATCH "anyURI-regexp-match"
#define NAME_X500NAME_REGEXP_MATCH "x500Name-regexp-match"

///Evaluate whether arg1 (value in regular expression) matched arg0 (lable in regular expression)
class MatchFunction : public Function {
public:
  MatchFunction(std::string functionName, std::string argumentType);

public:
  virtual AttributeValue* evaluate(AttributeValue* arg0, AttributeValue* arg1, bool check_id = true);
  virtual std::list<AttributeValue*> evaluate(std::list<AttributeValue*> args, bool check_id = true);
   /**help function to get the FunctionName*/
  static std::string getFunctionName(std::string datatype);

private:
  std::string fnName;
  std::string argType;
};

} // namespace ArcSec

#endif /* __ARC_SEC_MATCH_FUNCTION_H__ */