This file is indexed.

/usr/share/arm/resources/torrcOverride/override.c is in tor-arm 1.4.5.0-1.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// This is a very small C wrapper that invokes
// $(DESTDIR)/usr/bin/tor-arm-replace-torrc.py to work around setuid scripting
// issues on the Gnu/Linux operating system.
//
// We assume you have installed it as such for GROUP
// "debian-arm" - This should ensure that only members of the GROUP group will
// be allowed to run this program. When run this program will execute the
// $(DESTDIR)/usr/bin/tor-arm-replace-torrc.py program and will run with the
// uid and group as marked by the OS.
//
// Compile it like so:
// 
//  make
//
// Or by hand like so:
//
//  gcc -o tor-arm-replace-torrc tor-arm-replace-torrc.c
// 
// Make it useful like so:
//
//  chown root:debian-arm tor-arm-replace-torrc
//  chmod 04750 tor-arm-replace-torrc
//
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//
// If you place a user inside of the $GROUP - they are now able to reconfigure
// Tor. This may lead them to do nasty things on your system. If you start Tor
// as root,  you should consider that adding a user to $GROUP is similar to
// giving those users root directly.
//
// This program was written simply to help a users who run arm locally and is
// not required if arm is communicating with a remote Tor process.
//
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//
//

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "tor-arm-replace-torrc.h"

int main()
{
   return execve(TOR_ARM_REPLACE_TORRC, NULL, NULL);
}