-----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}DLVr3vn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