Description of problem: Souhrn: SELinux is preventing console-kit-dae (consolekit_t) "unlink" to ./database (var_run_t). Podrobný popis: [SELinux je v uvolněném režimu, operace by byla odmítnuta, ale byla povolena kvůli uvolněnému režimu.] SELinux is preventing console-kit-dae (consolekit_t) "unlink" to ./database (var_run_t). The SELinux type var_run_t, is a generic type for all files in the directory and very few processes (SELinux Domains) are allowed to write to this SELinux type. This type of denial usual indicates a mislabeled file. By default a file created in a directory has the gets the context of the parent directory, but SELinux policy has rules about the creation of directories, that say if a process running in one SELinux Domain (D1) creates a file in a directory with a particular SELinux File Context (F1) the file gets a different File Context (F2). The policy usually allows the SELinux Domain (D1) the ability to write, unlink, and append on (F2). But if for some reason a file (./database) was created with the wrong context, this domain will be denied. The usual solution to this problem is to reset the file context on the target file, restorecon -v './database'. If the file context does not change from var_run_t, then this is probably a bug in policy. Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against the selinux-policy package. If it does change, you can try your application again to see if it works. The file context could have been mislabeled by editing the file or moving the file from a different directory, if the file keeps getting mislabeled, check the init scripts to see if they are doing something to mislabel the file. Povolení přístupu: You can attempt to fix file context by executing restorecon -v './database' Tento přístup povolí následující příkaz: restorecon './database' Další informace: Kontext zdroje system_u:system_r:consolekit_t Kontext cíle system_u:object_r:var_run_t Objekty cíle ./database [ file ] Zdroj console-kit-dae Cesta zdroje /usr/sbin/console-kit-daemon Port <Neznámé> Počítač hubmaier.ceplovi.cz RPM balíčky zdroje ConsoleKit-0.2.7-1.fc9 RPM balíčky cíle RPM politiky selinux-policy-3.2.7-1.fc9 Selinux povolen True Typ politiky targeted MLS povoleno True Vynucovací režim Permissive Název zásuvného modulu mislabeled_file Název počítače hubmaier.ceplovi.cz Platforma Linux hubmaier.ceplovi.cz 2.6.24-17.fc9 #1 SMP Mon Feb 4 18:35:53 EST 2008 x86_64 x86_64 Počet uporoznění 1 Poprvé viděno Po 11. únor 2008, 10:48:01 CET Naposledy viděno Po 11. únor 2008, 10:48:01 CET Místní ID 7037886b-34fe-450a-b66e-04394881a916 Čísla řádků Původní zprávy auditu host=hubmaier.ceplovi.cz type=AVC msg=audit(1202723281.279:4580): avc: denied { unlink } for pid=2665 comm="console-kit-dae" name="database" dev=dm-1 ino=197123 scontext=system_u:system_r:consolekit_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file host=hubmaier.ceplovi.cz type=SYSCALL msg=audit(1202723281.279:4580): arch=c000003e syscall=82 success=yes exit=0 a0=41785d a1=4178e5 a2=2 a3=32ea56c9d8 items=0 ppid=1 pid=2665 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) comm="console-kit-dae" exe="/usr/sbin/console-kit-daemon" subj=system_u:system_r:consolekit_t:s0 key=(null) Version-Release number of selected component (if applicable): ConsoleKit-0.2.7-1.fc9.x86_64 selinux-policy-targeted-3.2.7-1.fc9.noarch
Fixed in selinux-policy-3.2.7-3.fc9
Please file these bugs against selinux-policy in the future. Thanks.
CLosed as this should be fixed in rawhide. If this problem persists please reopen the bugzilla.