Comment 30 for bug 2051504

Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

Ok, the apparmor mailing list gurus answered this:

"To use aa_getpeercon() your kernel will need the fine grained unix mediation which hasn't land in upstream kernels yet. So current upstream kernels will return -ENOPROTOOPT because SO_PEERLABEL is not a supported protocol option.

Additionally note that with LSM stacking, with apparmor stacked with another LSM, even if you have the fine grained af_unix mediation, that aa_getpeercon() will either return an error or the wrong LSM info (it will depend on the version aa_getpeercon() that is in use."

So it seems that it will be needed a patch for the patch.