[PATCH 0/2] Generalize tokenizer and remove sscanf calls from libsepol

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

 



Libsepol uses %ms in sscanf, which certain platforms do not support. Since
Richard Haines already added support for this in libselinux we modified and
added the new tokenize() function to libsepol and libselinux.

Modifications were necessary to preserve existing libsepol functionality such as
splitting on non-whitespace delimiters and not squashing consecutive delimiters.

Yuli Khodorkovskiy (2):
  libselinux: generalize read_spec_entries for any delimiter
  libsepol: Replace sscanf in module_to_cil

 libselinux/src/label_android_property.c |  11 ++-
 libselinux/src/label_file.h             |  10 ++-
 libselinux/src/label_internal.h         |   7 +-
 libselinux/src/label_support.c          | 129 +++++++++++++++++++-------------
 libsepol/include/sepol/policydb/util.h  |   6 ++
 libsepol/src/module_to_cil.c            |  61 ++++++++++++---
 libsepol/src/util.c                     | 102 +++++++++++++++++++++++++
 7 files changed, 255 insertions(+), 71 deletions(-)

-- 
1.9.3

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



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

  Powered by Linux