Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Where could I get the apparmor profile for latest Skype4? I tried to make my own based on previous skype version but there are too many errors while launching.

share|improve this question

2 Answers 2

A very late response but here's Apparmor profile skype 4.1.0.20 - Ubuntu 12.04 by NikTh who acknowledged this as the source.

Although it is suggested that:

Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.

In this case, I'm not sure much purpose will be served by pasting details of the profile here but if it is felt helpful I will.

share|improve this answer
# HOWTO:
# $ sudo aa-genprof /usr/bin/skype
# $ sudo service apparmor restart
# $ sudo aa-enforce skype
# then monitor syslog and add more, if required

# INFO: man 5 apparmor.d
# Access modes:
# r - read
# w - write
# m -- allow PROT_EXEC with mmap()
# l -- link
# k -- lock
# *x -- different ways to execute. Best: ix

#include <tunables/global>

/usr/bin/skype {
  #include <abstractions/audio>
  #include <abstractions/base>
  #include <abstractions/kde>
  #include <abstractions/nameservice>
  #include <abstractions/fonts>
  #include <abstractions/video>
  #include <abstractions/dbus>
  #include <abstractions/nvidia>
  #include <abstractions/X>

  # System
  /proc/sys/kernel/** r,
  @{PROC}/@{pid}/** r,
  /dev/ r,
  /dev/video* rw,

  /sys/devices/system/cpu/ r,
  /sys/devices/system/cpu/** r,

  # Executables
  /usr/bin/skype mr,
  /usr/bin/pulseaudio rmix,

  # Root
  /etc/xdg/Trolltech.conf rk,
  /usr/share/** rk,
  /var/cache/fontconfig/** rwk,

  # Home
  owner @{HOME}/.Skype/ rwk,
  owner @{HOME}/.Skype/** rwk,
  owner @{HOME}/.config/Skype/** rwk,
  owner @{HOME}/.kde/share/config/kioslaverc r,
  owner @{HOME}/.kde{,4}/share/config/kdeglobals rl,

  # Uploads to /tmp/tmp/
  /tmp/tmp/** rwk,
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.