strongSwan AppArmor profile doesn't allow smartcard configuration

Bug #1330486 reported by Jonathan Davies
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
strongswan (Ubuntu)
Incomplete
Medium
Jonathan Davies
Declined for Trusty by Sergio Durigan Junior

Bug Description

strongSwan's charon AppArmor profile is so restrictive it doesn't allow for smartcards.

Jonathan Davies (jpds)
Changed in strongswan (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Jonathan Davies (jpds)
Revision history for this message
Jacques (caramba696) wrote :

In particular, it is the charon profile which doesn't allow access to the PC/SC layer and to the specific smartcard files (depending on the vendor).

For example, with a Gemalto IDPrime .NET card, this is what I get in my logs:

#Jun 29 08:29:46 ubuntu kernel: [ 873.811807] type=1400 audit(1435559386.465:51): apparmor="DENIED" operation="open" profile="/usr/lib/ipsec/charon" name="/run/shm/gemalto_idprime_sdata" pid=11356 comm="charon" requested_mask="rwc" denied_mask="rwc" fsuid=0 ouid=0
#Jun 29 08:29:46 ubuntu kernel: [ 873.817301] type=1400 audit(1435559386.469:52): apparmor="DENIED" operation="connect" profile="/usr/lib/ipsec/charon" name="/run/pcscd/pcscd.comm" pid=11356 comm="charon" requested_mask="rw" denied_mask="rw" fsuid=0 ouid=0

Revision history for this message
Simon Déziel (sdeziel) wrote :

@caramba696, smartcard should be improved in Xenial so you might want to re-test.

The Apparmor profile allows charon to access /run/pcscd/pcscd.comm and also include other rules related to smartcards.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

according to last update and no response setting to incomplete for now

Changed in strongswan (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Jacques (caramba696) wrote :

@sdeziel @paelzer sorry for my delay... I haven't followed this topic since a while.
I will give Xenial a try as soon as possible.
Thanks

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

It's been almost 6 years since the last update to this bug. Trusty and Xenial have both reached end of standard support. It would be great to have feedback on this one.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.