[PATCH 58/74] Mv some of the setup we were doing in the

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch sets up desktop environment for launching gui tools in Makefile
rather then spec file.
   This patch looks good to me. acked.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJpNtMACgkQrlYvE4MpobOJIgCgjOZZX/PKwORfddCVG80auRWE
SiMAoI/ozCVsRq7kq5GlbaZXB54q7B7c
=HeVB
-----END PGP SIGNATURE-----
From dcc519928dcad358ca62e4d55236f206e1e9a50c Mon Sep 17 00:00:00 2001
From: Dan Walsh <dwalsh@xxxxxxxxxx>
Date: Fri, 11 Oct 2013 09:20:12 -0400
Subject: [PATCH 58/74] 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.
---
 policycoreutils/gui/Makefile                      |  16 +++++-
 policycoreutils/gui/selinux-polgengui.8           |  35 +++++++++++
 policycoreutils/gui/selinux-polgengui.desktop     |  67 ++++++++++++++++++++++
 policycoreutils/gui/system-config-selinux         |   3 +
 policycoreutils/gui/system-config-selinux.8       |  37 ++++++++++++
 policycoreutils/gui/system-config-selinux.desktop |  67 ++++++++++++++++++++++
 policycoreutils/gui/system-config-selinux.png     | Bin 0 -> 1447 bytes
 7 files changed, 223 insertions(+), 2 deletions(-)
 create mode 100644 policycoreutils/gui/selinux-polgengui.8
 create mode 100644 policycoreutils/gui/selinux-polgengui.desktop
 create mode 100755 policycoreutils/gui/system-config-selinux
 create mode 100644 policycoreutils/gui/system-config-selinux.8
 create mode 100644 policycoreutils/gui/system-config-selinux.desktop
 create mode 100644 policycoreutils/gui/system-config-selinux.png

diff --git a/policycoreutils/gui/Makefile b/policycoreutils/gui/Makefile
index ea7d7e4..9d9f820 100644
--- a/policycoreutils/gui/Makefile
+++ b/policycoreutils/gui/Makefile
@@ -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:
diff --git a/policycoreutils/gui/selinux-polgengui.8 b/policycoreutils/gui/selinux-polgengui.8
new file mode 100644
index 0000000..52bf7dd
--- /dev/null
+++ b/policycoreutils/gui/selinux-polgengui.8
@@ -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@xxxxxxxxxx>
diff --git a/policycoreutils/gui/selinux-polgengui.desktop b/policycoreutils/gui/selinux-polgengui.desktop
new file mode 100644
index 0000000..0c2f399
--- /dev/null
+++ b/policycoreutils/gui/selinux-polgengui.desktop
@@ -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;
diff --git a/policycoreutils/gui/system-config-selinux b/policycoreutils/gui/system-config-selinux
new file mode 100755
index 0000000..5be5ccd
--- /dev/null
+++ b/policycoreutils/gui/system-config-selinux
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/pkexec /usr/share/system-config-selinux/system-config-selinux.py
diff --git a/policycoreutils/gui/system-config-selinux.8 b/policycoreutils/gui/system-config-selinux.8
new file mode 100644
index 0000000..eca2024
--- /dev/null
+++ b/policycoreutils/gui/system-config-selinux.8
@@ -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@xxxxxxxxxx>
diff --git a/policycoreutils/gui/system-config-selinux.desktop b/policycoreutils/gui/system-config-selinux.desktop
new file mode 100644
index 0000000..8822ce2
--- /dev/null
+++ b/policycoreutils/gui/system-config-selinux.desktop
@@ -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;
diff --git a/policycoreutils/gui/system-config-selinux.png b/policycoreutils/gui/system-config-selinux.png
new file mode 100644
index 0000000000000000000000000000000000000000..68ffcb77bd9f8cd01043f566e539ce2f8c4820f6
GIT binary patch
literal 1447
zcmV;Y1z7rtP)<h;3K|Lk000e1NJLTq000;O000;W1^@s6;CDUv00004XF*Lt007q5
z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU%IY~r8RCwC7
zR$WY!XB2+=WB-A#HbP;7)#7Gl*6RG3GW?0MJH|pB%YtSd%i=QKa7*09k}Y`Qg-etK
z<Hf=S>PVJsOZ-7%HUs`q)GkV)6QisMGAY<rT1u(y*ZS^!A8prW*|Hno<mvb3`_6lw
z_dVx1@2P|_h8H@r2uuV!p`CD<aDc!O`b$eo1*3<lZ}yb!{~8j3Kq8U!o0jNo+qM*8
z>sBL7Wm=p({Rd8Uj0E%Z^Es!}iEucK8#ivCudfddhXdo|<3U<~g>W_Xbp00r3%D0z
z!NP6u4o$-Mz>8<zCjcM8iEDtO>|Go`etdp`L?U8lW+p?{+uIAb+Z{}iqzSL&5O~f5
z!~F)VT(<xkxgUv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mPAA&Aq-OqHYvmmiNp
z?RfL-Qv_p4lv79_+y`E=&fB%Lw4k=O7U#~L6ICS;2)FD>XCLezZA8(MLfEY#<PA;O
zj!ecc%bJ^;ap=$?Qy>JJg?6ehrKI+S@nblF56I~zs=bR&su2Z;6)RT2XrzW@GGWJ#
z9b!%@Dk|XdcrbAH9^8NW@rFhYKJLfMdf?YF-k82BIGqyx-@ZS8RdgK%JNy;cdvAf2
zm5608w91xLY?;++WpoNwU0ux#1_MjASfP!!Z&pc}<5dMaXpk_`KC36&gp0AP7}@>z
zK<a(=5Hhlj(EKm`xg|v?tmh;z`d@_<FL?YVzyL`*Eg|w=e%t^6002ovPDHLkV1i(f
BqVWI#

literal 0
HcmV?d00001

-- 
1.8.3.1


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux