setools: Missing function prototypes

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

 



Hi,

        During automated builds on IA64 machines in Debian,  setools
 failed to build due to missing function prototypes, and implicit
 conversion from int to pointer. A patch follows.

        manoj

======================================================================

Missing function prototypes are likely to cause setools to
segfault on architectures where the size of a pointer is greater than the
size of an integer, such as ia64 and amd64.

 Function `toplevel_get_log_mls_lvl' implicitly converted to pointer at filter_view.c:846
 Function `toplevel_get_log_mls_clr' implicitly converted to pointer at filter_view.c:859

This patch adds the prototypes, and the doxygen comments to the header
file.

Signed-off-by: Manoj Srivastava <srivasta@xxxxxxxxxx>
---
 seaudit/toplevel.h |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/seaudit/toplevel.h b/seaudit/toplevel.h
index dd8729e..19fb664 100644
--- a/seaudit/toplevel.h
+++ b/seaudit/toplevel.h
@@ -155,6 +155,30 @@ apol_vector_t *toplevel_get_log_roles(toplevel_t * top);
 apol_vector_t *toplevel_get_log_types(toplevel_t * top);
 
 /**
+ * Return a vector of strings corresponding to all mls levels
+ * found within currently opened log files.  The vector will be sorted
+ * alphabetically.
+ *
+ * @param top Toplevel containing seaudit log object.
+ *
+ * @return Vector of sorted types, or NULL if no log is loaded.  The
+ * caller must call apol_vector_destroy() upon the return value.
+ */
+apol_vector_t *toplevel_get_log_mls_lvl(toplevel_t * top);
+
+/**
+ * Return a vector of strings corresponding to all mls clearance
+ * found within currently opened log files.  The vector will be sorted
+ * alphabetically.
+ *
+ * @param top Toplevel containing seaudit log object.
+ *
+ * @return Vector of sorted types, or NULL if no log is loaded.  The
+ * caller must call apol_vector_destroy() upon the return value.
+ */
+apol_vector_t *toplevel_get_log_mls_clr(toplevel_t * top);
+
+/**
  * Return a vector of strings corresponding to all mls
  * levels found within the current log file.  
  * The vector will be sorted alphabetically.
-- 
1.6.3.3


-- 
Manoj Srivastava <srivasta@xxxxxxx> <http://www.golden-gryphon.com/>  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

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

  Powered by Linux