~apparmor-dev/apparmor/master

« back to all changes in this revision

Viewing changes to profiles/apparmor/profiles/extras/usr.bin.mlmmj-make-ml.sh

  • Committer: Steve Beattie
  • Date: 2019-02-19 09:38:13 UTC
  • Revision ID: sbeattie@ubuntu.com-20190219093813-ud526ee6hwn8nljz
The AppArmor project has been converted to git and is now hosted on
gitlab.

To get the converted repository, please do
  git clone https://gitlab.com/apparmor/apparmor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# ------------------------------------------------------------------
2
 
#
3
 
#    Copyright (C) 2002-2005 Novell/SUSE
4
 
#
5
 
#    This program is free software; you can redistribute it and/or
6
 
#    modify it under the terms of version 2 of the GNU General Public
7
 
#    License published by the Free Software Foundation.
8
 
#
9
 
# ------------------------------------------------------------------
10
 
# vim:syntax=apparmor
11
 
 
12
 
#include <tunables/global>
13
 
 
14
 
/usr/bin/mlmmj-make-ml.sh {
15
 
  #include <abstractions/base>
16
 
  #include <abstractions/bash>
17
 
  #include <abstractions/consoles>
18
 
  #include <abstractions/nameservice>
19
 
 
20
 
  capability sys_admin,
21
 
 
22
 
  /usr/bin/mlmmj-make-ml.sh r,
23
 
 
24
 
  # some shell tools are needed
25
 
  /{usr/,}bin/domainname mix,
26
 
  /{usr/,}bin/hostname mix,
27
 
  /{usr/,}bin/bash mix,
28
 
  /{usr/,}bin/cp mixr,
29
 
  /{usr/,}bin/mkdir mixr,
30
 
  /{usr/,}bin/touch mixr,
31
 
  /usr/bin/which mixr,
32
 
  # if mkdir cant read the current work directory it jumps into /
33
 
  # allow reading that dir.
34
 
  / r,
35
 
 
36
 
  # skeleton data
37
 
  /usr/share/mlmmj/text.skel r,
38
 
  /usr/share/mlmmj/text.skel/** r,
39
 
 
40
 
  # spool dirs
41
 
  /var/spool r,
42
 
  /var/spool/mlmmj rw,
43
 
  /var/spool/mlmmj/** w,
44
 
}