File: usr.sbin.kopano-search

package info (click to toggle)
kopanocore 8.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 15,400 kB
  • sloc: cpp: 175,422; python: 24,623; perl: 7,319; php: 6,056; sh: 2,172; makefile: 1,294; xml: 45; ansic: 1
file content (45 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download
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
#include <tunables/global>

/usr/sbin/kopano-search flags=(attach_disconnected) {
  #include <abstractions/base>
  #include <abstractions/nameservice>
  #include <abstractions/python>
  #include <abstractions/user-tmp>
  #include <kopano-client.aa>

  capability chown,
  capability dac_override,
  capability dac_read_search,
  capability setgid,
  capability setuid,

  @{PROC}/@{pid}/cmdline r,
  @{PROC}/@{pid}/mounts r,
  @{PROC}/@{pid}/status r,
  @{PROC}/@{pid}/task/@{tid}/comm rw,

  deny /usr/lib/python{2.?,3}/dist-packages/kopano_search/*.pyc w,

  # FIXME: it would be nice if search would use search- like pa
  /dev/shm/* rwl,

  /lib/ld-*.so mr,
  /lib64/ld-*.so mr,
  /lib/@{multiarch}/ld-*.so mr,
  /usr/bin/python{2,3}.? ix,
  /usr/sbin/kopano-search r,

  /etc/kopano/search.cfg r,

  /bin/dash Pix,
  /bin/rm Pix,
  /sbin/ldconfig Pix,

  /run/kopano/search.pid rw,
  /run/kopano/search.pid.lock lrw,
  /run/kopano/search.sock rw,
  /run/kopano/*.*-* rw,

  /var/lib/kopano/search/** rwlk,
  /var/log/kopano/search.log rw,
}