1. 31 Aug, 2013 1 commit
  2. 29 Aug, 2013 1 commit
    • Anton Vorontsov's avatar
      bq24190_charger: Workaround SS definition problem on i386 builds · d24fed39
      Anton Vorontsov authored
      For __i386__ builds we have:
      
      arch/x86/include/uapi/asm/ptrace-abi.h:#define SS   16
      
      And in the driver:
      
      BQ24190_SYSFS_FIELD_RO(vbus_stat,       SS,     VBUS_STAT)
      
      That breaks the build like this:
      
      drivers/power/bq24190_charger.c:375:138: error: ‘BQ24190_REG_16’
      undeclared here (not in a function)
      drivers/power/bq24190_charger.c:375:162: error:
      ‘BQ24190_REG_16_THERM_STAT_MASK’ undeclared here (not in a function)
      drivers/power/bq24190_charger.c:375:203: error:
      ‘BQ24190_REG_16_THERM_STAT_SHIFT’ undeclared here (not
       in a function)
      
      With this commit we workaround the problem by undefining 'SS'.
      Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: default avatarAnton Vorontsov <anton@enomsg.org>
      d24fed39
  3. 28 Aug, 2013 7 commits
  4. 09 Aug, 2013 7 commits
  5. 04 Aug, 2013 6 commits
  6. 03 Aug, 2013 17 commits
  7. 02 Aug, 2013 1 commit
    • Paul Moore's avatar
      netlabel: use domain based selectors when address based selectors are not available · 6a8b7f0c
      Paul Moore authored
      NetLabel has the ability to selectively assign network security labels
      to outbound traffic based on either the LSM's "domain" (different for
      each LSM), the network destination, or a combination of both.  Depending
      on the type of traffic, local or forwarded, and the type of traffic
      selector, domain or address based, different hooks are used to label the
      traffic; the goal being minimal overhead.
      
      Unfortunately, there is a bug such that a system using NetLabel domain
      based traffic selectors does not correctly label outbound local traffic
      that is not assigned to a socket.  The issue is that in these cases
      the associated NetLabel hook only looks at the address based selectors
      and not the domain based selectors.  This patch corrects this by
      checking both the domain and address based selectors so that the correct
      labeling is applied, regardless of the configuration type.
      
      In order to acomplish this fix, this patch also simplifies some of the
      NetLabel domainhash structures to use a more common outbound traffic
      mapping type: struct netlbl_dommap_def.  This simplifies some of the code
      in this patch and paves the way for further simplifications in the
      future.
      Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6a8b7f0c