This file is indexed.

/usr/share/upstart/sessions/cameraservice-trust-stored.conf is in ubuntu-touch-session 0.108+16.04.20160407-0ubuntu1.

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
description "CameraService Trust Store Daemon"

start on started dbus and xsession SESSION=ubuntu-touch
stop on runlevel [06]

respawn

script
    timeout=800
    service_socket=/dev/socket/camera_service/camera_service_to_trust
    # loop and then exit, if camera service isnt up after 80 sec
    # it is likely not starting at all (or not there)
    while [ ! -e $service_socket ]; do
        sleep 0.1
        if [ "$timeout" -le 0 ]; then
            stop; exit 0
        fi
        timeout=$(($timeout - 1))
    done

    # Extra security to make sure the service is bound to the sockec
    # TODO check if needed by inspection of trust store library / camera service
    sleep 1

    exec /usr/bin/trust-stored-skeleton \
        --remote-agent UnixDomainSocketRemoteAgent --endpoint=$service_socket \
        --local-agent MirAgent \
        --trusted-mir-socket=/var/run/user/$(id -u)/mir_socket_trusted \
        --for-service CameraService \
        --with-text-domain CameraService \
        --store-bus session \
        --disable-whitelisting=yes
end script