Skip to contentSkip to conversation

setools: Missing function prototypes

PATCH Manoj Srivastava 1 participant 1 message Aug 17, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

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.

---
 seaudit/toplevel.h |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
seaudit/toplevel.h +24 -0
index dd8729e..19fb664 100644
@@ -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.
Signature · 11 lines
1.6.3.3


-- 
Manoj Srivastava <[email protected]> <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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.