GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/authz/helper_deny.cc
Date: 2026-04-05 02:35:23
Exec Total Coverage
Lines: 0 10 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /**
2 * This file is part of the CernVM File System.
3 */
4 #include <unistd.h>
5
6 #include <string>
7
8 #include "helper_log.h"
9 #include "helper_util.h"
10
11 using namespace std; // NOLINT
12
13
14 int main() {
15 CheckCallContext();
16
17 // Handshake
18 string msg = ReadMsg();
19 ParseHandshakeInit(msg);
20 WriteMsg("{\"cvmfs_authz_v1\":{\"msgid\":1,\"revision\":0}}");
21 LogAuthz(kLogAuthzDebug | kLogAuthzSyslog,
22 "authz deny helper invoked, connected to cvmfs process %d",
23 getppid());
24
25 while (true) {
26 msg = ReadMsg();
27 LogAuthz(kLogAuthzDebug, "got authz request %s", msg.c_str());
28 ParseRequest(msg);
29 WriteMsg("{\"cvmfs_authz_v1\":{\"msgid\":3,\"revision\":0,\"status\":3}}");
30 }
31
32 return 0;
33 }
34