Skip to content

Instantly share code, notes, and snippets.

@mfournier
Created August 27, 2013 10:42
Show Gist options
  • Save mfournier/6352032 to your computer and use it in GitHub Desktop.
Save mfournier/6352032 to your computer and use it in GitHub Desktop.
root@vagrant-openldap:/etc/openldap# ls -lZd /var/lib/ldap
ls: cannot access /var/lib/ldap: No such file or directory
root@vagrant-openldap:/etc/openldap# semanage fcontext -l | grep slapd_db_t
/etc/openldap/slapd\.d(/.*)? all files system_u:object_r:slapd_db_t:s0
/var/lib/ldap all files system_u:object_r:slapd_db_t:s0
/var/lib/ldap(/.*)? all files system_u:object_r:slapd_db_t:s0
root@vagrant-openldap:/etc/openldap# mkdir /var/lib/ldap
root@vagrant-openldap:/etc/openldap# mkdir /var/lib/ldap/a
root@vagrant-openldap:/etc/openldap# ls -laZ /var/lib/ldap
drwxr-xr-x. root root unconfined_u:object_r:var_lib_t:s0 .
drwxr-xr-x. root root system_u:object_r:var_lib_t:s0 ..
drwxr-xr-x. root root unconfined_u:object_r:var_lib_t:s0 a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment