[CentOS-de] selinux Problem

Günther J. Niederwimmer gjn at gjn.priv.at
Fr Jan 6 13:58:01 UTC 2017


Hallo,

die Frage ist was mache ich falsch ;-).

Ich möchte für amavisd eine Ramdisk einrichten aber anscheinend mache ich 
irgend etwas falsch denn nach einem reboot sind die Rechte weg ?

ich bin so vorgegangen

ls -Z /var/spool/amavisd/
srwxr-x---. amavis amavis system_u:object_r:antivirus_db_t:s0 amavisd.sock
drwxr-x---. amavis amavis system_u:object_r:antivirus_db_t:s0 db
drwxr-x---. amavis amavis system_u:object_r:antivirus_db_t:s0 quarantine
drwxr-x---. amavis amavis system_u:object_r:antivirus_db_t:s0 tmp


in fstab
tmpfs /var/spool/amavisd/tmp     tmpfs ...............................

nach einem reboot oder mount -a stimmt das nicht mehr
drwxr-x---. amavis amavis system_u:object_r:  ..... :s0 tmp

also schnell ein

chcon -Rv --type=antivirus_db_t /var/spool/amavisd/tmp

damit postfix wieder läuft.

und danach ein
semanage fcontext -a -t antivirus_db_t "/var/spool/amavisd/tmp(/.*)?" 

nach einem reboot fehlt aber diese Anweisung ?

Wie bringe ich das Dauerhaft hin ?
-- 
mit freundlichen Grüssen / best regards

  Günther J. Niederwimmer


Mehr Informationen über die Mailingliste CentOS-de