Mv some of the setup we were doing in the policycoreutils.spec file into the main code

Basically add an icon, setup the desktop environment, setup system-config-selinux to run
via pkexec.
This commit is contained in:
Dan Walsh 2013-10-11 09:20:12 -04:00 committed by Stephen Smalley
parent 5102ed4cb8
commit 953d4b6683
7 changed files with 223 additions and 2 deletions

View File

@ -19,18 +19,30 @@ portsPage.py \
semanagePage.py \
statusPage.py \
system-config-selinux.glade \
system-config-selinux.png \
usersPage.py
all: $(TARGETS) system-config-selinux.py polgengui.py
install: all
-mkdir -p $(MANDIR)/man8
-mkdir -p $(SHAREDIR)
-mkdir -p $(BINDIR)
-mkdir -p $(DATADIR)/pixmaps
-mkdir -p $(DATADIR)/icons/hicolor/24x24/apps
-mkdir -p $(SYSCONFDIR)
-mkdir -p $(DATADIR)/polkit-1/actions/
install -m 755 system-config-selinux.py $(SHAREDIR)
install -m 755 system-config-selinux $(BINDIR)
install -m 755 polgengui.py $(SHAREDIR)
install -m 755 sepolgen $(BINDIR)
install -m 644 $(TARGETS) $(SHAREDIR)
install -m 644 system-config-selinux.8 $(MANDIR)/man8
install -m 644 selinux-polgengui.8 $(MANDIR)/man8
install -m 644 system-config-selinux.png $(DATADIR)/pixmaps
install -m 644 system-config-selinux.png $(DATADIR)/icons/hicolor/24x24/apps
install -m 644 system-config-selinux.png $(DATADIR)/system-config-selinux
install -m 644 *.desktop $(DATADIR)/system-config-selinux
install -m 644 org.selinux.config.policy $(DATADIR)/polkit-1/actions/
clean:
indent:

View File

@ -0,0 +1,35 @@
.TH "selinux-polgengui" "8" "8 April 2013" "System Config Tools Manual" "System Config Tools Manual"
.SH NAME
selinux\-polgengui \- SELinux Policy Generation Tool
.SH SYNOPSIS
.B selinux-polgengui
.SH DESCRIPTION
\fBselinux-polgengui\fP is a graphical tool, which can be used to create a framework for building SELinux Policy.
.SH OPTIONS
None
.SH FILES
\fi/usr/bin/selinux-polgengui\fP
.SH Examples
To run the program type:
selinux-polgengui
.PP
.SH "SEE ALSO"
.TP
selinux(1), sepolicy(8), sepolicy-generate(8)
.PP
.SH REPORTING BUGS
Report bugs to <http://bugzilla.redhat.com>.
.SH LICENSE AND AUTHORS
\fBselinux-polgengui\fP is licensed under the GNU Public License and
is copyrighted by Red Hat, Inc.
.br
This man page was written by Daniel Walsh <dwalsh@redhat.com>

View File

@ -0,0 +1,67 @@
[Desktop Entry]
Name=SELinux Policy Generation Tool
Name[bn_IN]=SELinux Policy ি
Name[ca]=Eina de generació de polítiques del SELinux
Name[da]=Regelsætgenereringsværktøj til SELinux
Name[de]=Tool zur Erstellung von SELinux-Richtlinien
Name[es]=Generador de Políticas de SELinux
Name[fi]=SELinux-käytäntöjen generointityökalu
Name[fr]=Outil de génération de stratégies SELinux
Name[gu]=SELinux િ
Name[hi]=SELinux ि
Name[it]=Tool di generazione della policy di SELinux
Name[ja]=SELinux
Name[kn]=SELinux ಿಿ
Name[ko]=SELinux
Name[ml]=SELinux ിി
Name[mr]=SELinux ि
Name[nl]=SELinux tactiek generatie gereedschap
Name[or]=SELinux ି ି
Name[pa]=SELinux ਿ ਿ
Name[pl]=Narzędzie tworzenia polityki SELinuksa
Name[pt]=Ferramenta de Geração de Políticas SELinux
Name[pt_BR]=Ferramenta de criação de políticas do SELinux
Name[ru]=Средство создания политики SELinux
Name[sv]=Genereringsverktyg för SELinuxpolicy
Name[ta]=SELinux ிி ி ி
Name[te]=SELinux ి
Name[uk]=Утиліта генерації правил SELinux
Name[zh_CN]=SELinux
Name[zh_TW]=SELinux SELinux Policy Generation Tool
Comment=Generate SELinux policy modules
Comment[bn_IN]=SELinux িি ি ি
Comment[ca]=Genera els mòduls de les polítiques de SELinux
Comment[da]=Generér SELinux-regelsætmodul
Comment[de]=Tool zur Erstellung von SELinux-Richtlinien
Comment[es]=Generar módulos de política de SELinux
Comment[fi]=Generoi SELinuxin käytäntömoduuleja
Comment[fr]=Génére des modules de stratégie SELinux
Comment[gu]=SELinux િ
Comment[hi]= ि
Comment[it]=Genera moduli della politica di SELinux
Comment[ja]=
Comment[kn]=SELinux ಿಿ ಿ
Comment[ko]=SELinux
Comment[ml]=SELinux ിി
Comment[mr]=SELinux ि
Comment[nl]=Maak een SELinux tactiek module aan
Comment[or]=SELinux ି ି
Comment[pa]=SELinux ਿ ਿ
Comment[pl]=Tworzenie nowych modułów polityki SELinuksa
Comment[pt]=Gerar módulos de políticas SELinux
Comment[pt_BR]=Gerar módulos de política do SELinux
Comment[ru]=Генерация модулей политики SELinux
Comment[sv]=Generera SELinux-policymoduler
Comment[ta]=SELinux ி
Comment[te]=SELinux ి
Comment[uk]=Створення модулів контролю доступу SELinux
Comment[zh_CN]= SELinux
Comment[zh_TW]= SELinux
StartupNotify=true
Icon=system-config-selinux
Exec=/usr/bin/selinux-polgengui
Type=Application
Terminal=false
Categories=System;Security;
X-Desktop-File-Install-Version=0.2
Keywords=policy;security;selinux;avc;permission;mac;

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/bin/pkexec /usr/share/system-config-selinux/system-config-selinux.py

View File

@ -0,0 +1,37 @@
.TH "system-config-selinux" "8" "8 April 2013" "System Config Tools Manual" "System Config Tools Manual"
.SH NAME
system\-config\-selinux \- SELinux Management tool
.SH SYNOPSIS
.B system-config-selinux
.SH DESCRIPTION
\fBsystem-config-selinux\fP provides a graphical interface for managing the
SELinux configuration.
.SH OPTIONS
None
.SH FILES
\fi/usr/bin/system-config-selinux\fP
.SH Examples
To run the program type:
system-config-selinux
.PP
.SH "SEE ALSO"
.TP
selinux(1), semanage(8)
.PP
.SH REPORTING BUGS
Report bugs to <http://bugzilla.redhat.com>.
.SH LICENSE AND AUTHORS
\fBsystem-config-selinux\fP is licensed under the GNU Public License and
is copyrighted by Red Hat, Inc.
.br
This man page was written by Daniel Walsh <dwalsh@redhat.com>

View File

@ -0,0 +1,67 @@
[Desktop Entry]
Name=SELinux Management
Name[bn_IN]=SELinux ি
Name[da]=Håndtering af SELinux
Name[de]=SELinux-Management
Name[ca]=Gestió de SELinux
Name[es]=Administración de SELinux
Name[fi]=SELinuxin ylläpito
Name[fr]=Gestion de SELinux
Name[gu]=SELinux
Name[hi]=SELinux
Name[jp]=SELinux
Name[it]=Gestione di SELinux
Name[kn]=SELinux
Name[ko]=SELinux
Name[ml]=SELinux
Name[mr]=SELinux
Name[nl]=SELinux beheer
Name[or]=SELinux ି
Name[pa]=SELinux
Name[pl]=Zarządzanie SELinuksem
Name[pt_BR]=Gerenciamento do SELinux
Name[pt]=Gestão de SELinux
Name[ru]=Управление SELinux
Name[sv]=SELinux-hantering
Name[ta]=SELinux
Name[te]=SELinux ి
Name[uk]=Керування SELinux
Name[zh_CN]=SELinux
Name[zh_TW]=SELinux
Comment=Configure SELinux in a graphical setting
Comment[bn_IN]=ি ি SELinux ি
Comment[ca]=Configura SELinuc an mode de preferències gràfiques
Comment[da]=Konfigurér SELinux i et grafisk miljø
Comment[de]=SELinux in einer grafischen Einstellung konfigurieren
Comment[es]=Defina SELinux en una configuración de interfaz gráfica
Comment[fi]=Tee SELinuxin asetukset graafisesti
Comment[fr]=Configure SELinux dans un environnement graphique
Comment[gu]=િ SELinux િ
Comment[hi]=SELinux ि ि
Comment[it]=Configura SELinux in una impostazione grafica
Comment[jp]= SELinux
Comment[ko]=SELinux
Comment[kn]=SELinux ಿ ಿಿ ಿಿ
Comment[ml]= ി ി SELinux ി
Comment[mr]=ि ि SELinux
Comment[nl]=Configureer SELinux in een grafische omgeving
Comment[or]=SELinux ି ି
Comment[pa]=SELinux ਿ ਿ ਿ
Comment[pl]=Konfiguracja SELinuksa w trybie graficznym
Comment[pt]=Configurar o SELinux num ambiente gráfico
Comment[pt_BR]=Configure o SELinux em uma configuração gráfica
Comment[ru]=Настройка SELinux в графическом режиме
Comment[sv]=Konfigurera SELinux i en grafisk miljö
Comment[ta]=SELinux ி
Comment[te]=SELinux ి ి
Comment[uk]=Засіб для налаштування SELinux з графічним інтерфейсом
Comment[zh_CN]= SELinux
Comment[zh_TW]= SELinux
StartupNotify=true
Icon=system-config-selinux
Exec=/usr/bin/system-config-selinux
Type=Application
Terminal=false
Categories=System;Security;
X-Desktop-File-Install-Version=0.2
Keywords=policy;security;selinux;avc;permission;mac;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB