mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-23 07:37:02 +00:00
614 lines
20 KiB
Plaintext
614 lines
20 KiB
Plaintext
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<ui version="4.0">
|
||
|
<class>TeRuleQueryTab</class>
|
||
|
<widget class="QWidget" name="TeRuleQueryTab">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>774</width>
|
||
|
<height>846</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="windowTitle">
|
||
|
<string>Form</string>
|
||
|
</property>
|
||
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||
|
<property name="sizeConstraint">
|
||
|
<enum>QLayout::SetNoConstraint</enum>
|
||
|
</property>
|
||
|
<item>
|
||
|
<widget class="QScrollArea" name="scrollArea">
|
||
|
<property name="sizeAdjustPolicy">
|
||
|
<enum>QAbstractScrollArea::AdjustToContents</enum>
|
||
|
</property>
|
||
|
<property name="widgetResizable">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
<widget class="QWidget" name="contents">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>754</width>
|
||
|
<height>826</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="minimumSize">
|
||
|
<size>
|
||
|
<width>0</width>
|
||
|
<height>825</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<layout class="QGridLayout" name="gridLayout_4">
|
||
|
<item row="5" column="0">
|
||
|
<widget class="QGroupBox" name="class_criteria">
|
||
|
<property name="title">
|
||
|
<string>Object Class Criteria</string>
|
||
|
</property>
|
||
|
<layout class="QGridLayout" name="gridLayout_7">
|
||
|
<item row="0" column="2">
|
||
|
<spacer name="horizontalSpacer_4">
|
||
|
<property name="orientation">
|
||
|
<enum>Qt::Horizontal</enum>
|
||
|
</property>
|
||
|
<property name="sizeHint" stdset="0">
|
||
|
<size>
|
||
|
<width>40</width>
|
||
|
<height>20</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
</spacer>
|
||
|
</item>
|
||
|
<item row="0" column="0" rowspan="2">
|
||
|
<widget class="QListView" name="tclass">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>250</width>
|
||
|
<height>16777215</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="selectionMode">
|
||
|
<enum>QAbstractItemView::MultiSelection</enum>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="1">
|
||
|
<widget class="QPushButton" name="clear_class">
|
||
|
<property name="text">
|
||
|
<string>Clear</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="1">
|
||
|
<widget class="QPushButton" name="invert_class">
|
||
|
<property name="text">
|
||
|
<string>Invert</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="3" column="1">
|
||
|
<widget class="QGroupBox" name="target_criteria">
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>16777215</width>
|
||
|
<height>100</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="title">
|
||
|
<string>Target Type/Attribute Criteria</string>
|
||
|
</property>
|
||
|
<layout class="QGridLayout" name="gridLayout_5">
|
||
|
<item row="1" column="2">
|
||
|
<widget class="QRadioButton" name="target_regex">
|
||
|
<property name="text">
|
||
|
<string>Regular Expression</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="2">
|
||
|
<widget class="QRadioButton" name="target_exact">
|
||
|
<property name="text">
|
||
|
<string>Exact Match</string>
|
||
|
</property>
|
||
|
<property name="checked">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="1">
|
||
|
<widget class="QLineEdit" name="target">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="minimumSize">
|
||
|
<size>
|
||
|
<width>150</width>
|
||
|
<height>0</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>200</width>
|
||
|
<height>16777215</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="1">
|
||
|
<widget class="QCheckBox" name="target_indirect">
|
||
|
<property name="toolTip">
|
||
|
<string>If the rule target is an attribute, indirect will match the criteria against the contents of the attribute, rather than the attribute itself.</string>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>Indirect</string>
|
||
|
</property>
|
||
|
<property name="checked">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="3">
|
||
|
<spacer name="horizontalSpacer_3">
|
||
|
<property name="orientation">
|
||
|
<enum>Qt::Horizontal</enum>
|
||
|
</property>
|
||
|
<property name="sizeHint" stdset="0">
|
||
|
<size>
|
||
|
<width>113</width>
|
||
|
<height>20</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
</spacer>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="0">
|
||
|
<widget class="QLabel" name="label">
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>16777215</width>
|
||
|
<height>20</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="font">
|
||
|
<font>
|
||
|
<pointsize>11</pointsize>
|
||
|
<weight>75</weight>
|
||
|
<bold>true</bold>
|
||
|
</font>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>Type Enforcement Rule Query</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="0" colspan="2">
|
||
|
<widget class="QGroupBox" name="ruletype_criteria">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>16777215</width>
|
||
|
<height>150</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="title">
|
||
|
<string>Rule Type Criteria</string>
|
||
|
</property>
|
||
|
<layout class="QGridLayout" name="gridLayout">
|
||
|
<item row="0" column="1">
|
||
|
<widget class="QCheckBox" name="neverallow">
|
||
|
<property name="text">
|
||
|
<string>Neverallow</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="6">
|
||
|
<widget class="QPushButton" name="clear_ruletypes">
|
||
|
<property name="text">
|
||
|
<string>Clear</string>
|
||
|
</property>
|
||
|
<property name="checkable">
|
||
|
<bool>false</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="6">
|
||
|
<widget class="QPushButton" name="all_ruletypes">
|
||
|
<property name="text">
|
||
|
<string>Select All</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="2">
|
||
|
<widget class="QCheckBox" name="auditallow">
|
||
|
<property name="text">
|
||
|
<string>Auditallow</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="0">
|
||
|
<widget class="QCheckBox" name="allow">
|
||
|
<property name="text">
|
||
|
<string>Allow</string>
|
||
|
</property>
|
||
|
<property name="checked">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="1">
|
||
|
<widget class="QCheckBox" name="type_change">
|
||
|
<property name="text">
|
||
|
<string>Type_change</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="0">
|
||
|
<widget class="QCheckBox" name="type_transition">
|
||
|
<property name="text">
|
||
|
<string>Type_transition</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="3">
|
||
|
<widget class="QCheckBox" name="dontaudit">
|
||
|
<property name="text">
|
||
|
<string>Dontaudit</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="2">
|
||
|
<widget class="QCheckBox" name="type_member">
|
||
|
<property name="text">
|
||
|
<string>Type_member</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="7">
|
||
|
<spacer name="horizontalSpacer">
|
||
|
<property name="orientation">
|
||
|
<enum>Qt::Horizontal</enum>
|
||
|
</property>
|
||
|
<property name="sizeHint" stdset="0">
|
||
|
<size>
|
||
|
<width>40</width>
|
||
|
<height>20</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
</spacer>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="3" column="0">
|
||
|
<widget class="QGroupBox" name="source_criteria">
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>16777215</width>
|
||
|
<height>100</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="title">
|
||
|
<string>Source Type/Attribute Criteria</string>
|
||
|
</property>
|
||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||
|
<item row="1" column="0">
|
||
|
<widget class="QCheckBox" name="source_indirect">
|
||
|
<property name="toolTip">
|
||
|
<string>If the rule source is an attribute, indirect will match the criteria against the contents of the attribute, rather than the attribute itself.</string>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>Indirect</string>
|
||
|
</property>
|
||
|
<property name="checked">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="3">
|
||
|
<spacer name="horizontalSpacer_2">
|
||
|
<property name="orientation">
|
||
|
<enum>Qt::Horizontal</enum>
|
||
|
</property>
|
||
|
<property name="sizeHint" stdset="0">
|
||
|
<size>
|
||
|
<width>40</width>
|
||
|
<height>20</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
</spacer>
|
||
|
</item>
|
||
|
<item row="0" column="0">
|
||
|
<widget class="QLineEdit" name="source">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="minimumSize">
|
||
|
<size>
|
||
|
<width>150</width>
|
||
|
<height>0</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>200</width>
|
||
|
<height>16777215</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="1">
|
||
|
<widget class="QRadioButton" name="source_regex">
|
||
|
<property name="text">
|
||
|
<string>Regular Expression</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="1">
|
||
|
<widget class="QRadioButton" name="source_exact">
|
||
|
<property name="text">
|
||
|
<string>Exact Match</string>
|
||
|
</property>
|
||
|
<property name="checked">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="5" column="1">
|
||
|
<widget class="QGroupBox" name="perms_criteria">
|
||
|
<property name="title">
|
||
|
<string>Permission Set Criteria</string>
|
||
|
</property>
|
||
|
<layout class="QGridLayout" name="gridLayout_6">
|
||
|
<item row="0" column="0" rowspan="2" colspan="2">
|
||
|
<widget class="QListView" name="perms">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="maximumSize">
|
||
|
<size>
|
||
|
<width>200</width>
|
||
|
<height>16777215</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="toolTip">
|
||
|
<string>The list of permissions common to selected object classes.</string>
|
||
|
</property>
|
||
|
<property name="selectionMode">
|
||
|
<enum>QAbstractItemView::MultiSelection</enum>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="3">
|
||
|
<widget class="QRadioButton" name="perms_any">
|
||
|
<property name="toolTip">
|
||
|
<string>A matching rule will have at least one of the selected permissions.</string>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>Match Any</string>
|
||
|
</property>
|
||
|
<property name="checked">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="2">
|
||
|
<widget class="QPushButton" name="clear_perms">
|
||
|
<property name="text">
|
||
|
<string>Clear</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="1" column="3">
|
||
|
<widget class="QRadioButton" name="perms_equal">
|
||
|
<property name="toolTip">
|
||
|
<string>A matching rule will have all of the selected permissions.</string>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>Match All</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="4">
|
||
|
<spacer name="horizontalSpacer_5">
|
||
|
<property name="orientation">
|
||
|
<enum>Qt::Horizontal</enum>
|
||
|
</property>
|
||
|
<property name="sizeHint" stdset="0">
|
||
|
<size>
|
||
|
<width>40</width>
|
||
|
<height>20</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
</spacer>
|
||
|
</item>
|
||
|
<item row="1" column="2">
|
||
|
<widget class="QPushButton" name="invert_perms">
|
||
|
<property name="text">
|
||
|
<string>Invert</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="6" column="1">
|
||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||
|
<property name="standardButtons">
|
||
|
<set>QDialogButtonBox::Apply</set>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="7" column="0" colspan="2">
|
||
|
<widget class="QToolBox" name="toolBox">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="currentIndex">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<widget class="QWidget" name="page">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>736</width>
|
||
|
<height>210</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<attribute name="label">
|
||
|
<string>Results</string>
|
||
|
</attribute>
|
||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||
|
<item>
|
||
|
<widget class="QTableView" name="table_results">
|
||
|
<property name="sizeAdjustPolicy">
|
||
|
<enum>QAbstractScrollArea::AdjustIgnored</enum>
|
||
|
</property>
|
||
|
<property name="alternatingRowColors">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
<property name="sortingEnabled">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
<widget class="QWidget" name="page_2">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>722</width>
|
||
|
<height>210</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<attribute name="label">
|
||
|
<string>Raw Results</string>
|
||
|
</attribute>
|
||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||
|
<item>
|
||
|
<widget class="QPlainTextEdit" name="raw_results">
|
||
|
<property name="minimumSize">
|
||
|
<size>
|
||
|
<width>0</width>
|
||
|
<height>0</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
<property name="font">
|
||
|
<font>
|
||
|
<family>Monospace</family>
|
||
|
</font>
|
||
|
</property>
|
||
|
<property name="documentTitle">
|
||
|
<string/>
|
||
|
</property>
|
||
|
<property name="lineWrapMode">
|
||
|
<enum>QPlainTextEdit::NoWrap</enum>
|
||
|
</property>
|
||
|
<property name="readOnly">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="8" column="0" colspan="2">
|
||
|
<widget class="QGroupBox" name="groupBox">
|
||
|
<property name="title">
|
||
|
<string>Notes</string>
|
||
|
</property>
|
||
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||
|
<item>
|
||
|
<widget class="QTextEdit" name="textEdit">
|
||
|
<property name="minimumSize">
|
||
|
<size>
|
||
|
<width>0</width>
|
||
|
<height>125</height>
|
||
|
</size>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
<tabstops>
|
||
|
<tabstop>scrollArea</tabstop>
|
||
|
<tabstop>allow</tabstop>
|
||
|
<tabstop>neverallow</tabstop>
|
||
|
<tabstop>auditallow</tabstop>
|
||
|
<tabstop>dontaudit</tabstop>
|
||
|
<tabstop>type_transition</tabstop>
|
||
|
<tabstop>type_change</tabstop>
|
||
|
<tabstop>type_member</tabstop>
|
||
|
<tabstop>clear_ruletypes</tabstop>
|
||
|
<tabstop>all_ruletypes</tabstop>
|
||
|
<tabstop>source</tabstop>
|
||
|
<tabstop>source_indirect</tabstop>
|
||
|
<tabstop>source_exact</tabstop>
|
||
|
<tabstop>source_regex</tabstop>
|
||
|
<tabstop>target</tabstop>
|
||
|
<tabstop>target_indirect</tabstop>
|
||
|
<tabstop>target_exact</tabstop>
|
||
|
<tabstop>target_regex</tabstop>
|
||
|
<tabstop>tclass</tabstop>
|
||
|
<tabstop>clear_class</tabstop>
|
||
|
<tabstop>invert_class</tabstop>
|
||
|
<tabstop>perms</tabstop>
|
||
|
<tabstop>clear_perms</tabstop>
|
||
|
<tabstop>invert_perms</tabstop>
|
||
|
<tabstop>perms_any</tabstop>
|
||
|
<tabstop>perms_equal</tabstop>
|
||
|
<tabstop>raw_results</tabstop>
|
||
|
<tabstop>table_results</tabstop>
|
||
|
</tabstops>
|
||
|
<resources/>
|
||
|
<connections/>
|
||
|
</ui>
|