[CentOS-de] selinux Problem

Frank Büttner frank-buettner at gmx.net
Fr Jan 6 14:36:54 UTC 2017


Juten  Abend,
welche CentOS Version wird denn genommen?
Bei der 7'er würde ich mir systemd tempfs anschauen.
https://fedoraproject.org/wiki/Packaging:Tmpfiles.d
http://0pointer.de/public/systemd-man/tmpfiles.d.html



Am 06.01.2017 um 14:58 schrieb Günther J. Niederwimmer:
> 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 ?
> 


-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : smime.p7s
Dateityp    : application/pkcs7-signature
Dateigröße  : 4701 bytes
Beschreibung: S/MIME Cryptographic Signature
URL         : <http://lists.centos.org/pipermail/centos-de/attachments/20170106/a51351ff/attachment.p7s>


Mehr Informationen über die Mailingliste CentOS-de