4 | 4 |
Index: apparmor-2.8.0/profiles/apparmor.d/abstractions/ubuntu-sdk-base
|
5 | 5 |
===================================================================
|
6 | 6 |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
7 | |
+++ apparmor-2.8.0/profiles/apparmor.d/abstractions/ubuntu-sdk-base 2013-06-25 16:54:22.000000000 -0500
|
|
7 |
+++ apparmor-2.8.0/profiles/apparmor.d/abstractions/ubuntu-sdk-base 2013-06-28 11:56:41.000000000 -0500
|
8 | 8 |
@@ -0,0 +1,23 @@
|
9 | 9 |
+#
|
10 | 10 |
+# ubuntu sdk base abstraction
|
|
31 | 31 |
+owner @{HOME}/.gstreamer-0.10/registry.x86_64.bin r,
|
32 | 32 |
Index: apparmor-2.8.0/utils/aa-easyprof
|
33 | 33 |
===================================================================
|
34 | |
--- apparmor-2.8.0.orig/utils/aa-easyprof 2013-06-25 16:54:22.000000000 -0500
|
35 | |
+++ apparmor-2.8.0/utils/aa-easyprof 2013-06-25 16:54:22.000000000 -0500
|
|
34 |
--- apparmor-2.8.0.orig/utils/aa-easyprof 2013-06-28 11:56:41.000000000 -0500
|
|
35 |
+++ apparmor-2.8.0/utils/aa-easyprof 2013-06-28 11:56:41.000000000 -0500
|
36 | 36 |
@@ -1,7 +1,7 @@
|
37 | 37 |
#! /usr/bin/env python
|
38 | 38 |
# ------------------------------------------------------------------
|
|
95 | 95 |
|
96 | 96 |
Index: apparmor-2.8.0/utils/aa-easyprof.pod
|
97 | 97 |
===================================================================
|
98 | |
--- apparmor-2.8.0.orig/utils/aa-easyprof.pod 2013-06-25 16:54:22.000000000 -0500
|
99 | |
+++ apparmor-2.8.0/utils/aa-easyprof.pod 2013-06-25 16:54:22.000000000 -0500
|
|
98 |
--- apparmor-2.8.0.orig/utils/aa-easyprof.pod 2013-06-28 11:56:41.000000000 -0500
|
|
99 |
+++ apparmor-2.8.0/utils/aa-easyprof.pod 2013-06-28 11:56:41.000000000 -0500
|
100 | 100 |
@@ -78,8 +78,15 @@
|
101 | 101 |
=item -n NAME, --name=NAME
|
102 | 102 |
|
|
142 | 142 |
=head1 EXAMPLE
|
143 | 143 |
Index: apparmor-2.8.0/utils/apparmor/easyprof.py
|
144 | 144 |
===================================================================
|
145 | |
--- apparmor-2.8.0.orig/utils/apparmor/easyprof.py 2013-06-25 16:54:22.000000000 -0500
|
146 | |
+++ apparmor-2.8.0/utils/apparmor/easyprof.py 2013-06-25 16:54:22.000000000 -0500
|
|
145 |
--- apparmor-2.8.0.orig/utils/apparmor/easyprof.py 2013-06-28 11:56:41.000000000 -0500
|
|
146 |
+++ apparmor-2.8.0/utils/apparmor/easyprof.py 2013-06-28 11:56:41.000000000 -0500
|
147 | 147 |
@@ -1,6 +1,6 @@
|
148 | 148 |
# ------------------------------------------------------------------
|
149 | 149 |
#
|
|
501 | 501 |
+
|
502 | 502 |
Index: apparmor-2.8.0/utils/easyprof/policygroups/networking
|
503 | 503 |
===================================================================
|
504 | |
--- apparmor-2.8.0.orig/utils/easyprof/policygroups/networking 2013-06-25 16:54:22.000000000 -0500
|
505 | |
+++ apparmor-2.8.0/utils/easyprof/policygroups/networking 2013-06-25 16:54:22.000000000 -0500
|
506 | |
@@ -1,2 +1,4 @@
|
507 | |
# Policygroup to allow networking
|
508 | |
+
|
509 | |
#include <abstractions/nameservice>
|
510 | |
+#include <abstractions/openssl>
|
511 | |
Index: apparmor-2.8.0/utils/easyprof/policygroups/qmlscene
|
512 | |
===================================================================
|
513 | |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
514 | |
+++ apparmor-2.8.0/utils/easyprof/policygroups/qmlscene 2013-06-25 16:54:22.000000000 -0500
|
515 | |
@@ -0,0 +1,13 @@
|
516 | |
+# policygroup for qmlscene apps
|
517 | |
+
|
518 | |
+/usr/share/qtchooser/ r,
|
519 | |
+/usr/share/qtchooser/** r,
|
520 | |
+/usr/lib/@{multiarch}/qt5/bin/qmlscene ixr,
|
521 | |
+/usr/share/icons/gnome/index.theme rk,
|
522 | |
+owner @{PROC}/[0-9]*/cmdline r,
|
523 | |
+owner @{HOME}/.config/UITK/theme.ini rk,
|
524 | |
+
|
525 | |
+# FIXME: will probably move to a location under /opt/
|
526 | |
+/usr/share/@{APPNAME}/ r,
|
527 | |
+/usr/share/@{APPNAME}/** r,
|
528 | |
+/usr/share/@{APPNAME}/**/ r,
|
529 | |
Index: apparmor-2.8.0/utils/easyprof/policygroups/qmlscene-sqlite
|
530 | |
===================================================================
|
531 | |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
532 | |
+++ apparmor-2.8.0/utils/easyprof/policygroups/qmlscene-sqlite 2013-06-25 16:54:22.000000000 -0500
|
533 | |
@@ -0,0 +1,18 @@
|
534 | |
+#
|
535 | |
+# qmlscene SQLite storage policygroup
|
536 | |
+#
|
537 | |
+
|
538 | |
+# this is created on shutdown?
|
539 | |
+# FIXME: this also needs to incorporate something templatable
|
540 | |
+owner /var/tmp/etilqs_* rw,
|
541 | |
+
|
542 | |
+# FIXME: these need to be templatable
|
543 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/" rw,
|
544 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/" rw,
|
545 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/" rw,
|
546 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/" rw,
|
547 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/[0-9a-f]*.ini{,.*}" rwk,
|
548 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/[0-9a-f]*.sqlite" rwk,
|
549 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/QML/OfflineStorage/Databases/[0-9a-f]*.sqlite-journal" rwk,
|
550 | |
+
|
551 | |
+
|
|
504 |
--- apparmor-2.8.0.orig/utils/easyprof/policygroups/networking 2013-06-28 11:56:41.000000000 -0500
|
|
505 |
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
506 |
@@ -1,2 +0,0 @@
|
|
507 |
-# Policygroup to allow networking
|
|
508 |
-#include <abstractions/nameservice>
|
552 | 509 |
Index: apparmor-2.8.0/utils/easyprof/templates/default
|
553 | 510 |
===================================================================
|
554 | |
--- apparmor-2.8.0.orig/utils/easyprof/templates/default 2013-06-25 16:54:22.000000000 -0500
|
555 | |
+++ apparmor-2.8.0/utils/easyprof/templates/default 2013-06-25 16:54:22.000000000 -0500
|
|
511 |
--- apparmor-2.8.0.orig/utils/easyprof/templates/default 2013-06-28 11:56:41.000000000 -0500
|
|
512 |
+++ apparmor-2.8.0/utils/easyprof/templates/default 2013-06-28 11:56:41.000000000 -0500
|
556 | 513 |
@@ -13,7 +13,7 @@
|
557 | 514 |
|
558 | 515 |
###VAR###
|
|
564 | 521 |
###ABSTRACTIONS###
|
565 | 522 |
Index: apparmor-2.8.0/utils/easyprof/templates/sandbox
|
566 | 523 |
===================================================================
|
567 | |
--- apparmor-2.8.0.orig/utils/easyprof/templates/sandbox 2013-06-25 16:54:22.000000000 -0500
|
568 | |
+++ apparmor-2.8.0/utils/easyprof/templates/sandbox 2013-06-25 16:54:22.000000000 -0500
|
|
524 |
--- apparmor-2.8.0.orig/utils/easyprof/templates/sandbox 2013-06-28 11:56:41.000000000 -0500
|
|
525 |
+++ apparmor-2.8.0/utils/easyprof/templates/sandbox 2013-06-28 11:56:41.000000000 -0500
|
569 | 526 |
@@ -13,7 +13,7 @@
|
570 | 527 |
|
571 | 528 |
###VAR###
|
|
577 | 534 |
/**/ r,
|
578 | 535 |
Index: apparmor-2.8.0/utils/easyprof/templates/sandbox-x
|
579 | 536 |
===================================================================
|
580 | |
--- apparmor-2.8.0.orig/utils/easyprof/templates/sandbox-x 2013-06-25 16:54:22.000000000 -0500
|
581 | |
+++ apparmor-2.8.0/utils/easyprof/templates/sandbox-x 2013-06-25 16:54:22.000000000 -0500
|
|
537 |
--- apparmor-2.8.0.orig/utils/easyprof/templates/sandbox-x 2013-06-28 11:56:41.000000000 -0500
|
|
538 |
+++ apparmor-2.8.0/utils/easyprof/templates/sandbox-x 2013-06-28 11:56:41.000000000 -0500
|
582 | 539 |
@@ -13,7 +13,7 @@
|
583 | 540 |
|
584 | 541 |
###VAR###
|
|
588 | 545 |
#include <abstractions/base>
|
589 | 546 |
#include <abstractions/gnome>
|
590 | 547 |
#include <abstractions/kde>
|
591 | |
Index: apparmor-2.8.0/utils/easyprof/templates/ubuntu-sdk
|
592 | |
===================================================================
|
593 | |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
594 | |
+++ apparmor-2.8.0/utils/easyprof/templates/ubuntu-sdk 2013-06-25 16:54:47.000000000 -0500
|
595 | |
@@ -0,0 +1,41 @@
|
596 | |
+#
|
597 | |
+# Example usage for an ubuntu-sdk app 'appname'
|
598 | |
+# $ aa-easyprof --template=ubuntu-sdk \
|
599 | |
+# -n appname \
|
600 | |
+# --profile-name=com.example.appname \
|
601 | |
+# -p qmlscene,qmlscene-sqlite \
|
602 | |
+# --template-var="@{APPNAME}=appname" \
|
603 | |
+# "/usr/share/appname/**"
|
604 | |
+#
|
605 | |
+###ENDUSAGE###
|
606 | |
+# vim:syntax=apparmor
|
607 | |
+# AppArmor policy for ###NAME###
|
608 | |
+# ###AUTHOR###
|
609 | |
+# ###COPYRIGHT###
|
610 | |
+# ###COMMENT###
|
611 | |
+
|
612 | |
+#include <tunables/global>
|
613 | |
+
|
614 | |
+###VAR###
|
615 | |
+
|
616 | |
+###PROFILEATTACH### {
|
617 | |
+ #include <abstractions/base>
|
618 | |
+ #include <abstractions/ubuntu-sdk-base>
|
619 | |
+
|
620 | |
+# FIXME: include this when DBus policy is available
|
621 | |
+# #include <abstractions/ubuntu-accessibility>
|
622 | |
+
|
623 | |
+ # FIXME: ought to go in a dbus abstraction, but dbus-session is too loose
|
624 | |
+ /var/lib/dbus/machine-id r,
|
625 | |
+
|
626 | |
+ # this is created on startup, why? /tmp/JXXXXX.sci
|
627 | |
+ owner /tmp/*.sci rwk,
|
628 | |
+
|
629 | |
+ ###ABSTRACTIONS###
|
630 | |
+
|
631 | |
+ ###POLICYGROUPS###
|
632 | |
+
|
633 | |
+ ###READS###
|
634 | |
+
|
635 | |
+ ###WRITES###
|
636 | |
+}
|
637 | 548 |
Index: apparmor-2.8.0/utils/easyprof/templates/user-application
|
638 | 549 |
===================================================================
|
639 | |
--- apparmor-2.8.0.orig/utils/easyprof/templates/user-application 2013-06-25 16:54:22.000000000 -0500
|
640 | |
+++ apparmor-2.8.0/utils/easyprof/templates/user-application 2013-06-25 16:54:22.000000000 -0500
|
|
550 |
--- apparmor-2.8.0.orig/utils/easyprof/templates/user-application 2013-06-28 11:56:41.000000000 -0500
|
|
551 |
+++ apparmor-2.8.0/utils/easyprof/templates/user-application 2013-06-28 11:56:41.000000000 -0500
|
641 | 552 |
@@ -16,7 +16,7 @@
|
642 | 553 |
|
643 | 554 |
###VAR###
|
|
649 | 560 |
###ABSTRACTIONS###
|
650 | 561 |
Index: apparmor-2.8.0/utils/test/test-aa-easyprof.py
|
651 | 562 |
===================================================================
|
652 | |
--- apparmor-2.8.0.orig/utils/test/test-aa-easyprof.py 2013-06-25 16:54:22.000000000 -0500
|
653 | |
+++ apparmor-2.8.0/utils/test/test-aa-easyprof.py 2013-06-25 16:54:22.000000000 -0500
|
|
563 |
--- apparmor-2.8.0.orig/utils/test/test-aa-easyprof.py 2013-06-28 11:56:41.000000000 -0500
|
|
564 |
+++ apparmor-2.8.0/utils/test/test-aa-easyprof.py 2013-06-28 11:56:41.000000000 -0500
|
654 | 565 |
@@ -10,6 +10,8 @@
|
655 | 566 |
# ------------------------------------------------------------------
|
656 | 567 |
|
|
1157 | 1068 |
|
1158 | 1069 |
#
|
1159 | 1070 |
# End test class
|
1160 | |
Index: apparmor-2.8.0/utils/easyprof/policygroups/qmlscene-webview
|
1161 | |
===================================================================
|
1162 | |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
1163 | |
+++ apparmor-2.8.0/utils/easyprof/policygroups/qmlscene-webview 2013-06-25 16:54:47.000000000 -0500
|
1164 | |
@@ -0,0 +1,17 @@
|
1165 | |
+#
|
1166 | |
+# qmlscene webview policygroup
|
1167 | |
+#
|
1168 | |
+
|
1169 | |
+owner @{PROC}/[0-9]*/cmdline r,
|
1170 | |
+
|
1171 | |
+# TODO: investigate child profile
|
1172 | |
+/usr/lib/@{multiarch}/qt5/libexec/QtWebProcess rmix,
|
1173 | |
+
|
1174 | |
+# FIXME: ought to be app specific
|
1175 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/.QtWebKit/WebpageIcons.db" rwk,
|
1176 | |
+
|
1177 | |
+# FIXME: needs to be app specific
|
1178 | |
+owner /{,run/}shm/WK2SharedMemory.[0-9]* rwk,
|
1179 | |
+
|
1180 | |
+# FIXME: ought to be app specific
|
1181 | |
+owner "@{HOME}/.local/share/Qt Project/QtQmlViewer/.QtWebKit/cookies.db" rwk,
|
1182 | |
Index: apparmor-2.8.0/utils/easyprof/templates/ubuntu-sdk-html5
|
1183 | |
===================================================================
|
1184 | |
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
1185 | |
+++ apparmor-2.8.0/utils/easyprof/templates/ubuntu-sdk-html5 2013-06-25 16:54:47.000000000 -0500
|
1186 | |
@@ -0,0 +1,38 @@
|
1187 | |
+#
|
1188 | |
+# Example usage for an ubuntu-sdk-html5 app 'appname'
|
1189 | |
+# $ aa-easyprof --template=ubuntu-sdk-html5 \
|
1190 | |
+# -n appname \
|
1191 | |
+# --profile-name=com.example.appname \
|
1192 | |
+# -p qmlscene,qmlscene-webview,networking \
|
1193 | |
+# --template-var="@{APPNAME}=appname" \
|
1194 | |
+# "/usr/share/appname/**"
|
1195 | |
+#
|
1196 | |
+###ENDUSAGE###
|
1197 | |
+# vim:syntax=apparmor
|
1198 | |
+# AppArmor policy for ###NAME###
|
1199 | |
+# ###AUTHOR###
|
1200 | |
+# ###COPYRIGHT###
|
1201 | |
+# ###COMMENT###
|
1202 | |
+
|
1203 | |
+#include <tunables/global>
|
1204 | |
+
|
1205 | |
+###VAR###
|
1206 | |
+
|
1207 | |
+###PROFILEATTACH### {
|
1208 | |
+ #include <abstractions/base>
|
1209 | |
+ #include <abstractions/ubuntu-sdk-base>
|
1210 | |
+
|
1211 | |
+ # FIXME: ought to go in a dbus abstraction, but dbus-session is too loose
|
1212 | |
+ /var/lib/dbus/machine-id r,
|
1213 | |
+
|
1214 | |
+ # this is created on startup, why? /tmp/JXXXXX.sci
|
1215 | |
+ owner /tmp/*.sci rwk,
|
1216 | |
+
|
1217 | |
+ ###ABSTRACTIONS###
|
1218 | |
+
|
1219 | |
+ ###POLICYGROUPS###
|
1220 | |
+
|
1221 | |
+ ###READS###
|
1222 | |
+
|
1223 | |
+ ###WRITES###
|
1224 | |
+}
|