← Back to team overview

desktop-packages team mailing list archive

[Bug 1476781] Re: [mako] cannot send sms unless a network connection is active

 

Currently neither the /usr/lib/telepathy/mission-control-5 nor the
/usr/lib/telepathy/telepathy-ofono allow read access to
/system/build.prop or dev/socket/property_service, so I'm not sure how
this ever worked.

Notice that 'dev/socket/property_service' is missing the leading '/' which means that to add a rule for it, we would have to do something like:
--- telepathy-mission-control-5-5.16.3/debian/apparmor-profile	2015-02-02 01:43:56.000000000 -0600
+++ telepathy-mission-control-5-5.16.3/debian/apparmor-profile	2015-07-21 14:10:51.000000000 -0500
@@ -3,7 +3,7 @@
 
 #include <tunables/global>
 
-/usr/lib/telepathy/mission-control-5 {
+/usr/lib/telepathy/mission-control-5 (attach_disconnected) {
     #include <abstractions/base>
     #include <abstractions/dbus>
     #include <abstractions/dbus-session>
@@ -59,6 +59,10 @@
     /usr/share/accounts/services/                    r,
     /usr/share/accounts/services/**                  r,
 
+    # Ubuntu Touch
+    /dev/socket/property_service rw,
+    @{PROC}/cmdline r,
+
     # Site-specific additions and overrides. See local/README for details.
     # Please note that accesses in local/usr.lib.telepathy are also applied to
     # /usr/lib/telepathy/telepathy-*.

'attach_disconnected' is something I'd like to avoid since it is at best
a workaround for a limitation in apparmor (that we are working on but
won't be fixed for a while). As such, I'd prefer that we "add
rild.libpath to build.prop" if that doesn't have any other
repercussions.

If we do that, will read access need to be granted to
/system/build.prop? If you are going the rild.libpath route, please
paste the denial and I can fix the profile accordingly.

Thanks!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to telepathy-mission-control-5 in Ubuntu.
https://bugs.launchpad.net/bugs/1476781

Title:
  [mako] cannot send sms unless a network connection is active

Status in telepathy-mission-control-5 package in Ubuntu:
  Triaged
Status in telepathy-ofono package in Ubuntu:
  New

Bug description:
  Mako only
  Latest ota5 update or rc-proposed

  Turn off wifi and cell data
  try t send an sms, it will fail to send
  enable either data connection, it will succeed

  syslog contains
  Jul 21 10:27:46 ubuntu-phablet kernel: [   16.082435] type=1400 audit(1437488866.193:170): apparmor="DENIED" operation="connect" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/telepathy/mission-control-5" name="dev/socket/property_service" pid=1592 comm="getprop" requested_mask="wr" denied_mask="wr" fsuid=32011 ouid=0
  Jul 21 10:27:46 ubuntu-phablet kernel: [   16.083137] type=1400 audit(1437488866.193:171): apparmor="DENIED" operation="open" profile="/usr/lib/telepathy/mission-control-5" name="/proc/cmdline" pid=1592 comm="getprop" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0

  version is 1:5.16.3-1ubuntu1.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/telepathy-mission-control-5/+bug/1476781/+subscriptions


References