[Desktop-packages] [Bug 1569863] Re: Support nimf in evince debian/apparmor-profile

2017-08-09 Thread Hodong Kim
I have updated https://github.com/cogniti/nimf/blob/master/data
/apparmor-abstractions/nimf

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

Title:
  Support nimf in evince debian/apparmor-profile

Status in evince package in Ubuntu:
  Confirmed

Bug description:
  Hello.

  I am a nimf developer. Nimf is an input method framework based on Unix Socket.
  For more information look at https://github.com/cogniti/nimf

  Current evince profile has the following denials:

  ---
  kern.log:Apr  5 11:32:28 hodong-desktop kernel: [   23.036294] audit: 
type=1400 audit(1459823548.936:22): apparmor="DENIED" operation="connect" 
profile="/usr/bin/evince" pid=1565 comm="evince" family="unix" 
sock_type="stream" protocol=0 requested_mask="send receive connect" 
denied_mask="send connect" addr=none peer_addr="@unix:abstract=nimf" 
peer="unconfined"
  ---

  So, I added /etc/apparmor.d/abstractions/nimf in nimf project.
  
https://github.com/cogniti/nimf/blob/c14a66e7a2fb2e5363a26d07a963cf9e911ea005/data/apparmor-abstractions/nimf

  ---
  # vim:syntax=apparmor

# Allow connecting to the nimf-daemon socket
unix (send, receive, connect)
 type=stream
 peer=(addr="@unix:abstract=nimf"),
  ---

  And modified /etc/apparmor.d/usr.bin.evince in Ubuntu 16.04

  hodong@desktop:~/Downloads/debian$ diff -Nurp apparmor-profile 
apparmor-profile-new
  --- apparmor-profile  2016-03-09 06:38:47.0 +0900
  +++ apparmor-profile-new  2016-04-13 21:07:33.231782000 +0900
  @@ -13,6 +13,7 @@
 #include 
 #include 
 #include 
  +  #include 
 #include 
   
 #include 
  @@ -120,6 +121,7 @@
 #include 
 #include 
 #include 
  +  #include 
 #include 
   
 #include 

  Then it works fine.
  Would you support nimf input method in Ubuntu evince profile?
  Please modify debian/apparmor-profile as mentioned above.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1569863/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1569863] Re: Support nimf in evince debian/apparmor-profile

2016-04-13 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: evince (Ubuntu)
   Status: New => Confirmed

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

Title:
  Support nimf in evince debian/apparmor-profile

Status in evince package in Ubuntu:
  Confirmed

Bug description:
  Hello.

  I am a nimf developer. Nimf is an input method framework based on Unix Socket.
  For more information look at https://github.com/cogniti/nimf

  Current evince profile has the following denials:

  ---
  kern.log:Apr  5 11:32:28 hodong-desktop kernel: [   23.036294] audit: 
type=1400 audit(1459823548.936:22): apparmor="DENIED" operation="connect" 
profile="/usr/bin/evince" pid=1565 comm="evince" family="unix" 
sock_type="stream" protocol=0 requested_mask="send receive connect" 
denied_mask="send connect" addr=none peer_addr="@unix:abstract=nimf" 
peer="unconfined"
  ---

  So, I added /etc/apparmor.d/abstractions/nimf in nimf project.
  
https://github.com/cogniti/nimf/blob/c14a66e7a2fb2e5363a26d07a963cf9e911ea005/data/apparmor-abstractions/nimf

  ---
  # vim:syntax=apparmor

# Allow connecting to the nimf-daemon socket
unix (send, receive, connect)
 type=stream
 peer=(addr="@unix:abstract=nimf"),
  ---

  And modified /etc/apparmor.d/usr.bin.evince in Ubuntu 16.04

  hodong@desktop:~/Downloads/debian$ diff -Nurp apparmor-profile 
apparmor-profile-new
  --- apparmor-profile  2016-03-09 06:38:47.0 +0900
  +++ apparmor-profile-new  2016-04-13 21:07:33.231782000 +0900
  @@ -13,6 +13,7 @@
 #include 
 #include 
 #include 
  +  #include 
 #include 
   
 #include 
  @@ -120,6 +121,7 @@
 #include 
 #include 
 #include 
  +  #include 
 #include 
   
 #include 

  Then it works fine.
  Would you support nimf input method in Ubuntu evince profile?
  Please modify debian/apparmor-profile as mentioned above.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1569863/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp