Commit Graph

748 Commits

Author SHA1 Message Date
Chris PeBenito
1d90732651 Merge pull request #141 from fishilico/libqpol-clang
Fix warnings reported by clang
2016-05-05 08:28:06 -04:00
Nicolas Iooss
ffe1d1c1cf
qpol.i: remove break after return
clang warns about unreachable break instructions:

    setools/policyrep/qpol_wrap.c:5522:51: error: 'break' will never be
    executed [-Werror,-Wunreachable-code-break]
                case 0x0400: return "dontauditxperm"; break;
                                                      ^~~~~
2016-05-04 23:14:45 +02:00
Nicolas Iooss
d5f2bd2654
qpol.i: remove extra semicolons in SWIG file
clang complained about these semicolons:

    setools/policyrep/qpol_wrap.c:6117:6: error: extra ';' outside of a
    function [-Werror,-Wextra-semi]
        };
         ^
2016-05-04 23:14:38 +02:00
Nicolas Iooss
2e028845ad
libqpol: fix typos in documentation comments
clang warns about unknown documentation commands, which are spelling
errors:

    libqpol/include/qpol/cond_query.h:87:5: error: unknown command tag
    name 'returm'; did you mean 'return'?
    [-Werror,-Wdocumentation-unknown-command]
     *  @returm 0 on success and < 0 on failure; if the call fails,
        ^~~~~~~
         return
2016-05-04 23:14:27 +02:00
Chris PeBenito
49e2819258 Remove libsepol 2.3 patch as it is no longer useful.
SETools now requires libsepol 2.5, which requires a large patch to revert
to libsepol 2.3.
2016-05-04 08:24:12 -04:00
Chris PeBenito
6303dad5f7 perm_map: Add security:validate_trans permission. 2016-05-03 08:19:22 -04:00
Chris PeBenito
ea73e7705f Update MANIFEST.in for recent file removals. 2016-05-02 15:02:32 -04:00
Chris PeBenito
2ec9336009 apol: Use stylesheet to create a border around all QGroupBoxes.
Apply stylesheet in SEToolsWidget so all widgets will have the sheet
and it will propagate to child widgets.  This will add more visual
grouping to related options.  Adjust BooleanQueryTab so
the "Default State" group box title is completely shown.
2016-05-02 10:36:54 -04:00
Chris PeBenito
ce821b850f perm_map: Add cap_userns and cap2_userns classes. 2016-04-27 08:45:32 -04:00
Chris PeBenito
c526264f52 policyrep: Make helper class naming consistent. 2016-04-26 13:29:26 -04:00
Chris PeBenito
be48ffd29e policyrep/selinuxpolicy.py: Remove unnecessary imports. 2016-04-26 13:29:18 -04:00
Chris PeBenito
9dc79ce672 qpol: Do not try to infer policy version on source policies.
Version is a compile-time setting.  The policy can also be downgraded
or may not use newer policy version features.

Set source policies to maximum supported policy version supported by
libsepol.
2016-04-26 10:12:03 -04:00
Chris PeBenito
e0d59c1eb8 Update KNOWN-BUGS 2016-04-25 15:43:43 -04:00
Chris PeBenito
48e009d8a4 Drop UNSTABLE_API file. 2016-04-25 14:26:57 -04:00
Chris PeBenito
5e16d57988 Remove duplicate linux_types.h. 2016-04-25 14:21:45 -04:00
Chris PeBenito
b7377f03d7 Merge pull request #132 from jbrindle/master
move linux_types header to libqpol
2016-04-25 13:49:13 -04:00
Chris PeBenito
30a95a850d policyrep: move SELinuxPolicy class to its own submodule.
Cleans up the policyrep package namespace.
2016-04-25 12:40:15 -04:00
Joshua Brindle
b7b313a086 move linux_types header to libqpol 2016-04-25 12:14:40 -04:00
Chris PeBenito
fa13413eec Move linux_types.h to libqpol directory. 2016-04-25 11:09:51 -04:00
Chris PeBenito
95ac39792d Fix build error.
Missed a util.h reference.
2016-04-22 14:46:55 -04:00
Chris PeBenito
d5589ecd43 setup.py: change version to 4.1-dev. 2016-04-22 14:32:43 -04:00
Chris PeBenito
458ea44809 Remove stale util.h in qpol. 2016-04-22 14:24:37 -04:00
Chris PeBenito
dc6525094c README: Move the "obtaining SETools" before the "building SETools" section. 2016-04-22 14:02:04 -04:00
Chris PeBenito
a7fe3639ec Remove bzip2 dependency.
This was needed for bzipped .pp files, but loading modules is no longer
supported.
2016-04-22 13:48:39 -04:00
Chris PeBenito
3ca3ed6b27 Update README now that libselinux C linkage is dropped. 2016-04-22 13:42:08 -04:00
Chris PeBenito
ee4584ddc8 Merge pull request #131 from jbrindle/master
MacOS support
2016-04-22 13:08:24 -04:00
Joshua Brindle
ac1550cc20 remove QPOL_POLICY_OPTION_MATCH_SYSTEM defines 2016-04-22 09:33:14 -04:00
Joshua Brindle
495a7973d8 Darwin define, remove libselinux and libsepol shared lib, remove libqpol map, and add local include dir 2016-04-22 09:33:14 -04:00
Joshua Brindle
f4c843ac24 darwin does not have dccp, set to known hardcoded value (hack) 2016-04-22 09:33:11 -04:00
Joshua Brindle
d6996d1f09 use c99 type for uint64_t 2016-04-22 09:16:30 -04:00
Joshua Brindle
9fbfeb43d2 symtab_datum is only 32 bits so casting triggers increase alignment warning, cast to void first to avoid that 2016-04-22 09:16:30 -04:00
Joshua Brindle
42fb95a9c9 headers and types not present on Darwin either wrapped or added in linux_types.h 2016-04-22 09:16:27 -04:00
Joshua Brindle
9a89d9b63b remove LIBSELINUX dependency, deprecated functions, and remove symbol map 2016-04-22 09:15:16 -04:00
Chris PeBenito
61613cf3f4 apol: adjust models to handle invalid indices in data().
Infrequently data() is called with an invalid index and then apol crashes.
2016-04-21 10:07:12 -04:00
Chris PeBenito
d75cc27e03 PermissionMapEditor: Python 2.7 fix
Python 2.7 list class does not have a .clear() function.

For #126
2016-04-20 12:40:25 -04:00
Chris PeBenito
7e529ce988 qhc: Set the home page 2016-04-20 11:57:26 -04:00
Chris PeBenito
2fb2ea0698 qhc: Put a symlink for the icons into the qhc dir.
qcollectiongenerator on some distros will ignore files outside
the current directory.
2016-04-20 11:54:43 -04:00
Chris PeBenito
16d397f631 qhc: Add titles to all pages. 2016-04-20 11:50:45 -04:00
Chris PeBenito
2c1e921305 Update README for apol 2016-04-20 10:11:29 -04:00
Chris PeBenito
a22fc0f669 ChooseAnalysis: Fix Ok button.
Also move double-click signal connection to .ui.
2016-04-20 09:55:10 -04:00
Chris PeBenito
f6cecd407f Add a copy of apol.qhc so users don't need to install Qt dev tools.
Distros are encouraged to rebuild this using the build_help setup.py
target.

Renamed setup target to build_qhc to bring in line with other help
references.
2016-04-20 09:50:23 -04:00
Chris PeBenito
2828db4a64 apol: Implement help menu
Populate with some help text from setools3.

Related to #114
2016-04-19 16:03:15 -04:00
Chris PeBenito
edde585e5f apol: Add an "about" dialog 2016-04-19 16:03:15 -04:00
Chris PeBenito
7fdff6941b Man page revisions.
* Add in missing xperm rule options.
* Fix copy-paste error in sesearch option descriptions

Closes #118
2016-04-19 09:22:19 -04:00
Chris PeBenito
5c13906b0b DomainTransitionAnalysis: Fix empty exclude attribute setting.
Fixes a crash in apol.
2016-04-19 08:23:26 -04:00
Chris PeBenito
6b00b01e10 apol: implement browser for domain transition and infoflow analyses.
Closes #100
2016-04-18 10:01:55 -04:00
Chris PeBenito
fa32092a3c ApolMainWindow: improve file open/save dialogs 2016-04-15 11:19:17 -04:00
Chris PeBenito
d09bfdd09b apol: implement default query tab
Closes #121
2016-04-14 10:03:34 -04:00
Chris PeBenito
d8256cee4a apol: implement bounds query
Closes #120
2016-04-14 09:55:40 -04:00
Chris PeBenito
243e94e740 apol: InfoFlow/DTA tabs: remove cancel button from busy dialog.
Prevention/work-around for #119.
2016-04-13 13:05:22 -04:00