Skip to content
Snippets Groups Projects
  1. Oct 30, 2021
  2. Oct 29, 2021
  3. Oct 28, 2021
    • Dominick Grift's avatar
      selinux-policy: update to version 1.0 · 04c5bcd0
      Dominick Grift authored
      wifi: writes to terminal
      hotplugcall and sqm read class sysfile symlinks
      unbound and sqm related loose ends
      support/example: policycoreutils host-compile is required
      TODO: this was wrong and it is actually needed
      linguist detectable does not work this way
      linguist-detectable
      updates README
      adds workflows
      adds a note about persistent /var option
      
      project moved to https://github.com/DefenSec/selinux-policy
      
      
      
      Signed-off-by: default avatarDominick Grift <dominick.grift@defensec.nl>
      04c5bcd0
    • Dominick Grift's avatar
      secilc: update to version 3.3 · 2da891e7
      Dominick Grift authored
      
      Update VERSIONs to 3.3 for release.
      Update VERSIONs to 3.3-rc3 for release.
      Correct some typos
      Update VERSIONs to 3.3-rc2 for release.
      Update VERSIONs and Python bindings version to 3.3-rc1 for release
      libsepol/secilc/docs: Update the CIL documentation
      secilc: fix memory leaks in secilc2conf
      secilc: fix memory leaks in secilc
      libsepol/cil: Add support for using qualified names to secil2conf
      libsepol/cil: Add support for using qualified names to secil2tree
      secilc: Add support for using qualified names to secilc
      secilc/test: Add test for anonymous args
      secilc/docs: Relocate and reword macro call name resolution order
      secilc/docs: Document the order that inherited rules are resolved in
      secilc: Create the new program called secil2tree to write out CIL AST
      secilc/docs: Update the CIL documentation for various blocks
      secilc.c: Don't fail if input file is empty
      cil_conditional_statements.md: fix expr definition
      secilc/docs: Lists are now allowed in constraint expressions
      
      Signed-off-by: default avatarDominick Grift <dominick.grift@defensec.nl>
      2da891e7
    • Dominick Grift's avatar
      policycoreutils: update to version 3.3 · a8c293ce
      Dominick Grift authored
      
      Update VERSIONs to 3.3 for release.
      Update VERSIONs to 3.3-rc3 for release.
      libselinux/semodule: Improve extracting message
      Correct some typos
      Update VERSIONs to 3.3-rc2 for release.
      Update VERSIONs and Python bindings version to 3.3-rc1 for release
      policycoreutils: free memory of allocated context in newrole
      policycoreutils: free memory of allocated context in run_init
      policycoreutils: free memory on lstat failure in sestatus
      policycoreutils: silence -Wextra-semi-stmt warning
      fixfiles: do not exclude /dev and /run in -C mode
      policycoreutils/setfiles: do not create useless setfiles.8.man file
      
      Signed-off-by: default avatarDominick Grift <dominick.grift@defensec.nl>
      a8c293ce
    • Dominick Grift's avatar
      checkpolicy: update to version 3.3 · b97890d7
      Dominick Grift authored
      
      Update VERSIONs to 3.3 for release.
      checkpolicy: Fix potential undefined shifts
      Update VERSIONs to 3.3-rc3 for release.
      checkpolicy: delay down-cast to avoid align warning
      checkpolicy: drop incorrect cast
      checkpolicy: update documentation
      checkpolicy: print reason of fopen failure
      checkpolicy: policy_define: cleanup declarations
      Update VERSIONs to 3.3-rc2 for release.
      checkpolicy: free extended permission memory
      checkpolicy: print warning on source line overflow
      checkpolicy: error out on parsing too big integers
      checkpolicy: avoid implicit conversion
      checkpolicy: resolve dismod memory leaks
      checkpolicy: add missing function declarations
      checkpolicy: mark file local functions in policy_define static
      checkpolicy: mark read-only parameters in module compiler const
      checkpolicy: misc checkpolicy tweaks
      checkpolicy: misc checkmodule tweaks
      checkpolicy: enclose macro argument in parentheses
      Update VERSIONs and Python bindings version to 3.3-rc1 for release
      checkpolicy: mark read-only parameters in policy define const
      checkpolicy/test: mark file local functions static
      checkpolicy: parse_util drop unused declaration
      checkpolicy: drop redundant cast to the same type
      checkpolicy: avoid potential use of uninitialized variable
      checkpolicy: check before potential NULL dereference
      checkpolicy: remove dead assignments
      checkpolicy: follow declaration-after-statement
      checkpolicy: use correct format specifier for unsigned
      checkpolicy: drop dead condition
      checkpolicy: simplify assignment
      checkpolicy: drop -pipe compile option
      checkpolicy: pass CFLAGS at link stage
      checkpolicy: silence -Wextra-semi-stmt warning
      checkpolicy: Do not automatically upgrade when using "-b" flag
      libsepol/checkpolicy: Set user roles using role value instead of dominance
      
      Signed-off-by: default avatarDominick Grift <dominick.grift@defensec.nl>
      b97890d7
    • Dominick Grift's avatar
      libsemanage: update to version 3.3 · c8d1f8fd
      Dominick Grift authored
      
      Update VERSIONs to 3.3 for release.
      Update VERSIONs to 3.3-rc3 for release.
      Update VERSIONs to 3.3-rc2 for release.
      Update VERSIONs and Python bindings version to 3.3-rc1 for release
      libsemanage: Fix USE_AFTER_FREE (CWE-672) in semanage_direct_write_langext()
      libsemanage: silence -Wextra-semi-stmt warning
      libsemanage: fix use-after-free in parse_module_store()
      
      Signed-off-by: default avatarDominick Grift <dominick.grift@defensec.nl>
      c8d1f8fd
    • Dominick Grift's avatar
      libselinux: update to version 3.3 · 6925c758
      Dominick Grift authored
      
      Update VERSIONs to 3.3 for release.
      libselinux: Fix potential undefined shifts
      Update VERSIONs to 3.3-rc3 for release.
      Update VERSIONs to 3.3-rc2 for release.
      libselinux/utils: drop requirement to combine compiling and linking
      Update VERSIONs and Python bindings version to 3.3-rc1 for release
      Improve error message for label file validation
      libselinux: replace strerror by %m
      libselinux: silence -Wextra-semi-stmt warning
      libselinux/utils/getseuser.c: fix build with gcc 4.8
      selinux.8: document how mount flag nosuid affects SELinux
      libselinux: fix typo
      libselinux: improve getcon(3) man page
      libselinux: selinux_status_open: return 1 in fallback mode
      libselinux: do not use status page fallback mode internally
      libselinux: make selinux_status_open(3) reentrant
      libselinux: avc_destroy(3) closes status page
      libselinux: label_file.c: fix indent
      libselinux: regex: unify parameter names
      libselinux: sidtab_sid_stats(): unify parameter name
      libselinux: drop redundant casts to the same type
      libselinux: label_db::db_init(): open file with CLOEXEC mode
      libselinux: matchpathcon: free memory on realloc failure
      libselinux: label_file::init(): do not pass NULL to strdup
      libselinux: init_selinux_config(): free resources on error
      libselinux: matchmediacon(): close file on error
      libselinux: store_stem(): do not free possible non-heap object
      libselinux: getdefaultcon: free memory on multiple same arguments
      libselinux: setexecfilecon(): drop dead assignment
      libselinux: label_media::init(): drop dead assignment
      libselinux: label_x::init(): drop dead assignment
      libselinux: context_new(): drop dead assignment
      libselinux: exclude_non_seclabel_mounts(): drop unused variable
      libselinux: getconlist: free memory on multiple level arguments
      libselinux: selabel_get_digests_all_partial_matches: free memory after FTS_D block
      libselinux: selinux_restorecon: mark local variable static
      libselinux: avcstat: use standard length modifier for unsigned long long
      libselinux: sefcontext_compile: mark local variable static
      libselinux: Sha1Finalise(): do not discard const qualifier
      libselinux: label_common(): do not discard const qualifier
      libselinux: selinux_file_context_cmp(): do not discard const qualifier
      libselinux: sidtab_hash(): do not discard const qualifier
      libselinux: silence -Wstringop-overflow warning from gcc 10.3.1
      libselinux: selinux_check_passwd_access_internal(): respect deny_unknown
      libselinux: do not duplicate make target when going into subdirectory
      
      Signed-off-by: default avatarDominick Grift <dominick.grift@defensec.nl>
      6925c758
    • Dominick Grift's avatar
      libsepol: update to version 3.3 · de8a800c
      Dominick Grift authored
      
      Update VERSIONs to 3.3 for release.
      libsepol/cil: Fix potential undefined shifts
      libsepol: Fix potential undefined shifts
      Update VERSIONs to 3.3-rc3 for release.
      libsepol/cil: Do not skip macros when resolving until later passes
      libsepol/cil: Limit the amount of reporting for bounds failures
      libsepol/cil: silence clang void-pointer-to-enum-cast warning
      libsepol: resolve GCC warning about null-dereference
      libsepol: use correct cast
      libsepol: ebitmap: mark nodes of const ebitmaps const
      Update VERSIONs to 3.3-rc2 for release.
      libsepol/cil: Handle operations in a class mapping when verifying
      libsepol/cil: Do not use original type and typeattribute datums
      libsepol: free memory after policy validation
      libsepol: avoid implicit conversions
      libsepol: fix typo
      libsepol/cil: Free duplicate datums in original calling function
      libsepol/cil: Fix detected RESOURCE_LEAK (CWE-772)
      Update VERSIONs and Python bindings version to 3.3-rc1 for release
      libsepol/cil: Limit the number of active line marks
      libsepol/cil: Add function to get number of items in a stack
      libsepol: Fix detected RESOURCE_LEAKs
      libsepol/cil: Fix syntax checking in __cil_verify_syntax()
      libsepol/cil: Use size_t for len in __cil_verify_syntax()
      libsepol/cil: Remove redundant syntax checking
      libsepol/cil: Improve in-statement to allow use after inheritance
      libsepol/cil: Simplify cil_tree_children_destroy()
      libsepol/cil: Refactor the function __cil_build_ast_node_helper()
      libsepol/cil: Don't destroy optionals whose parent will be destroyed
      libsepol/cil: Properly check for parameter when inserting name
      libsepol/cil: Reset expandtypeattribute rules when resetting AST
      libsepol/cil: Properly check parse tree when printing error messages
      libsepol/cil: Allow some duplicate macro and block declarations
      libsepol/cil: When writing AST use line marks for src_info nodes
      libsepol/cil: Report correct high-level language line numbers
      libsepol/cil: Add line mark kind and line number to src info
      libsepol/cil: Create common string-to-unsigned-integer functions
      libsepol/cil: Push line mark state first when processing a line mark
      libsepol/cil: Check for valid line mark type immediately
      libsepol/cil: Check the token type after getting the next token
      libsepol/cil: Check syntax of src_info statement
      libsepol/cil: move the fuzz target and build script to the selinux repository
      libsepol: replace strerror by %m
      libsepol/cil: remove obsolete comment
      libsepol/cil: do not allow \0 in quoted strings
      libsepol/cil: Fix handling category sets in an expression
      libsepol: assure string NUL-termination of ibdev_name
      libsepol: avoid implicit conversions
      libsepol: ignore UBSAN false-positives
      libsepol: avoid unsigned integer overflow
      libsepol/cil: Improve checking for bad inheritance patterns
      libsepol: silence -Wextra-semi-stmt warning
      libsepol/cil: do not override previous results of __cil_verify_classperms
      libsepol/cil: Provide option to allow qualified names in declarations
      libsepol/cil: make array cil_sym_sizes const
      libsepol/cil: Only reset AST if optional has a declaration
      libsepol/cil: Add function to determine if a subtree has a declaration
      libsepol/cil: Improve degenerate inheritance check
      libsepol/cil: Reduce the initial symtab sizes for blocks
      libsepol/cil: Check for empty list when marking neverallow attributes
      libsepol/cil: Fix syntax checking of defaultrange rule
      libsepol/cil: Properly check for loops in sets
      libsepol/cil: Allow duplicate optional blocks in most cases
      libsepol: declare read-only arrays const
      libsepol: declare file local variable static
      libsepol: drop unnecessary casts
      libsepol: drop repeated semicolons
      libsepol/cil: avoid using maybe uninitialized variables
      libsepol/cil: drop unnecessary casts
      libsepol/cil: drop dead store
      libsepol/cil: drop extra semicolon
      libsepol/cil: silence cast warning
      libsepol: remove dead stores
      libsepol: do not allocate memory of size 0
      libsepol: mark read-only parameters of type_set_ interfaces const
      libsepol: mark read-only parameters of ebitmap interfaces const
      libsepol: remove dead stores
      libsepol/cil: follow declaration-after-statement
      libsepol: follow declaration-after-statement
      libsepol: avoid unsigned integer overflow
      libsepol: remove unused functions
      libsepol: resolve missing prototypes
      libsepol: fix typos
      libsepol: Quote paths when generating policy.conf from binary policy
      libsepol/cil: Account for anonymous category sets in an expression
      libsepol/cil: Fix anonymous IP address call arguments
      libsepol: quote paths in CIL conversion
      libsepol/cil: Resolve anonymous levels only once
      libsepol/cil: Pointers to datums should be set to NULL when resetting
      libsepol/cil: Resolve anonymous class permission sets only once
      libsepol/cil: Limit the number of open parenthesis allowed
      libsepol/cil: Destroy the permission nodes when exiting with an error
      libsepol/cil: Handle disabled optional blocks in earlier passes
      libsepol/cil: Do not resolve arguments to declarations in the call
      libsepo/cil: Refactor macro call resolution
      libsepol/cil: Do not add NULL node when inserting key into symtab
      libsepol/cil: Make name resolution in macros work as documented
      libsepol/cil: Fix name resolution involving inherited blocks
      libsepol/cil: Check for self-referential loops in sets
      libsepol/cil: Return an error if a call argument fails to resolve
      libsepol/cil: Check datum in ordered list for expected flavor
      libsepol/cil: Detect degenerate inheritance and exit with an error
      libsepol/cil: Fix instances where an error returns SEPOL_OK
      libsepol/cil: Properly reset an anonymous classperm set
      libsepol: use checked arithmetic builtin to perform safe addition
      libsepol/cil: Add functions to make use of cil_write_ast()
      libsepol/cil: Create functions to write the CIL AST
      libsepol/cil: Use CIL_ERR for error messages in cil_compile()
      libsepol/cil: Make invalid statement error messages consistent
      libsepol/cil: Do not allow tunable declarations in in-statements
      libsepol/cil: Sync checks for invalid rules in macros
      libsepol/cil: Check for statements not allowed in optional blocks
      libsepol/cil: Sync checks for invalid rules in booleanifs
      libsepol/cil: Reorder checks for invalid rules when resolving AST
      libsepol/cil: Use AST to track blocks and optionals when resolving
      libsepol/cil: Create new first child helper function for building AST
      libsepol/cil: Cleanup build AST helper functions
      libsepol/cil: Reorder checks for invalid rules when building AST
      libsepol/cil: Move check for the shadowing of macro parameters
      libsepol/cil: Create function cil_add_decl_to_symtab() and refactor
      libsepol/cil: Refactor helper function for cil_gen_node()
      libsepol/cil: Allow permission expressions when using map classes
      libsepol/cil: Exit with an error if declaration name is a reserved word
      libsepol/cil: More strict verification of constraint leaf expressions
      libsepol/cil: Set class field to NULL when resetting struct cil_classperms
      libsepol/cil: cil_reset_classperms_set() should not reset classpermission
      libsepol/cil: Destroy classperm list when resetting map perms
      libsepol/cil: Destroy classperms list when resetting classpermission
      libsepol/cil: Fix out-of-bound read of file context pattern ending with "\"
      libsepol/cil: Check for duplicate blocks, optionals, and macros
      libsepol: Write "NO_IDENTIFIER" for empty CIL constraint expression
      libsepol: Enclose identifier lists in CIL constraint expressions
      libsepol/cil: Allow lists in constraint expressions
      libsepol: Enclose identifier lists in constraint expressions
      libsepol: Write "NO_IDENTIFIER" for empty constraint expression
      libsepol: make num_* unsigned int in module_to_cil
      libsepol/cil: do not leak avrulex_ioctl_table memory when an error occurs
      libsepol/cil: fix NULL pointer dereference in __cil_insert_name
      libsepol/cil: replace printf with proper cil_tree_log
      libsepol/cil: remove stray printf
      libsepol/cil: make cil_post_fc_fill_data static
      libsepol: Check kernel to CIL and Conf functions for supported versions
      libsepol: Remove unnecessary copying of declarations from link.c
      libsepol: Properly handle types associated to role attributes
      libsepol: Expand role attributes in constraint expressions
      
      Signed-off-by: default avatarDominick Grift <dominick.grift@defensec.nl>
      de8a800c
    • Daniel Golle's avatar
      mediatek: make sure MMC is not busy before commencing sysupgrade · 4ae4035e
      Daniel Golle authored
      
      In case of the block device still being in use, re-reading the
      partition table fails. In that case, abort sysupgrade to avoid
      corrupting the just-written image because of wrong offsets caused
      by failure to re-read the partition table.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Unverified
      4ae4035e
    • Daniel Golle's avatar
      base-files, metadata: support additional group membership · b2aca613
      Daniel Golle authored
      
      Some packages may require additional group membership for the system
      user added by that package. Allow defining additional groups as third
      member of the ':'-separated tuple, allowing to specify multiple
      ','-separated groups with optional GID.
      
      Example:
      USERID:=foouser=1000:foogroup=1000:addg1=1001,addg2=1002,addg3
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Unverified
      b2aca613
  4. Oct 27, 2021
  5. Oct 26, 2021
    • Peter Geis's avatar
      ipq806x: add support for Netgear Nighthawk Pro Gaming XR500 · 70c12d26
      Peter Geis authored
      This adds support for the Netgear Nighthawk Pro Gaming XR500.
      It is the successor to the Netgear Nighthawk R7800 and shares almost
      identical hardware to that device.
      The stock firmware is a heavily modified version of OpenWRT.
      
      Specifications:
        SoC: Qualcomm Atheros IPQ8065
        RAM: 512 MB
        Storage: 256 MiB NAND Flash
        Wireless: 2x Qualcomm Atheros QCA9984
        Ethernet: 2x 1000/100/10 dedicated interfaces
        Switch: 5x 1000/100/10 external ports
        USB: 2x 3.0 ports
      
      More information:
      Manufacturer page: https://www.netgear.com/gaming/xr500/
      Almost identical to Netgear R7800
      Differences (r7800 > xr500):
        Flash: 128MiB > 256MiB
        Removed esata
        swapped leds:
          usb1 (gpio 7 > 8)
          usb2 (gpio 8 > 26)
          guest/esata (gpio 26 > 7)
      
      MAC addresses:
      
      On the OEM firmware, the mac addresses are:
      
        WAN: *:50  art 0x6
        LAN: *:4f  art 0x0 (label)
        2G:  *:4f  art 0x0
        5G:  *:51  art 0xc
      
      Installation:
      Install via Web Interface (preferred):
      Utilize openwrt-ipq806x-netgear_xr500-squashfs-factory.img
      
      Install via TFTP recovery:
      1.Turn off the power, push and hold the reset button (in a hole on
        backside) with a pin
      2.Turn on the power and wait till power led starts flashing white
        (after it first flashes orange for a while)
      3.Release the reset button and tftp the factory img in binary mode.
        The power led will stop flashing if you succeeded in transferring
        the image, and the router reboots rather quickly with the new
        firmware.
      4.Try to ping the router (ping 192.168.1.1). If does not respond,
        then tftp will not work either.
      
      Uploading the firmware image with a TFTP client
      $ tftp 192.168.1.1
      bin
      put openwrt-ipq806x-netgear_xr500-squashfs-factory.img
      
      Note:
      
      The end of the last partition is at 0xee00000. This was chosen
      by the initial author, but nobody was able to tell why this
      particular arbitrary size was chosen. Since it's not leaving
      too much empty space and it's the only issue left, let's just
      keep it for now.
      
      Based on work by Adam Hnat <adamhnat@gmail.com>
      ref: https://github.com/openwrt/openwrt/pull/3215
      
      
      
      Signed-off-by: default avatarPeter Geis <pgwipeout@gmail.com>
      [squash commits, move common LEDs to DTSI, remove SPDX on old
       files, minor whitespace cleanup, commit message facelift,
       add MAC address overview, add Notes, fix MAC addresses,
       use generic name for partition nodes in DTS]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      70c12d26
    • Bruno Randolf's avatar
      ramips: minew g1-c: Allow dynamic RAM sizes · 2c3e8bed
      Bruno Randolf authored
      
      Allow RAM size to be passed thru U-Boot. There are 128MB and 64MB
      versions of Minew G1-C. This is also in line with the behaviour of
      most other RAMIPS boards.
      
      Signed-off-by: default avatarBruno Randolf <br1@einfach.org>
      Unverified
      2c3e8bed
Loading