p11-glue / p11-kit

Provides a way to load and enumerate PKCS#11 modules.
https://p11-glue.github.io/p11-glue/p11-kit.html
Other
149 stars 91 forks source link

Unknown error 13 #620

Closed Ge0rges closed 6 months ago

Ge0rges commented 6 months ago

Hello,

Running update-ca-trust on Rocky Linux 8.9 I get:

p11-kit: couldn't create file: /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt: Unknown error 13
p11-kit: couldn't create file: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem: Unknown error 13
p11-kit: couldn't create file: /etc/pki/ca-trust/extracted/pem/email-ca-bundle.pem: Unknown error 13
p11-kit: couldn't create file: /etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem: Unknown error 13
p11-kit: couldn't create file: /etc/pki/ca-trust/extracted/java/cacerts: Unknown error 13
p11-kit: couldn't create file: /etc/pki/ca-trust/extracted/edk2/cacerts.bin: Unknown error 13

What does this error indicate?

ueno commented 6 months ago

Perhaps you don't have sufficient permission to run the update-ca-trust? It is usually run by root:

$ errno 13
EACCES 13 Permission denied

though it's strange that the error is not resolved with strerror_l.

Ge0rges commented 6 months ago

That is odd!