2006-09-19 05:43:58 -06:00
|
|
|
header-y += byteorder/
|
2007-12-27 17:51:46 -07:00
|
|
|
header-y += can/
|
2011-01-29 06:10:37 -07:00
|
|
|
header-y += caif/
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += dvb/
|
|
|
|
header-y += hdlc/
|
2010-04-21 03:04:21 -06:00
|
|
|
header-y += hsi/
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += isdn/
|
2011-04-26 16:56:29 -06:00
|
|
|
header-y += mmc/
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += nfsd/
|
|
|
|
header-y += raid/
|
2007-05-08 01:32:15 -06:00
|
|
|
header-y += spi/
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += sunrpc/
|
|
|
|
header-y += tc_act/
|
2007-08-22 13:36:01 -06:00
|
|
|
header-y += tc_ematch/
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += netfilter/
|
|
|
|
header-y += netfilter_arp/
|
|
|
|
header-y += netfilter_bridge/
|
|
|
|
header-y += netfilter_ipv4/
|
|
|
|
header-y += netfilter_ipv6/
|
2006-12-16 16:34:53 -07:00
|
|
|
header-y += usb/
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += wimax/
|
|
|
|
|
|
|
|
objhdr-y += version.h
|
|
|
|
|
|
|
|
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \
|
2010-12-13 10:10:29 -07:00
|
|
|
$(srctree)/include/asm-$(SRCARCH)/a.out.h \
|
|
|
|
$(INSTALL_HDR_PATH)/include/asm-*/a.out.h),)
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += a.out.h
|
|
|
|
endif
|
|
|
|
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \
|
2010-12-13 10:10:29 -07:00
|
|
|
$(srctree)/include/asm-$(SRCARCH)/kvm.h \
|
|
|
|
$(INSTALL_HDR_PATH)/include/asm-*/kvm.h),)
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += kvm.h
|
|
|
|
endif
|
|
|
|
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
|
2010-12-13 10:10:29 -07:00
|
|
|
$(srctree)/include/asm-$(SRCARCH)/kvm_para.h \
|
|
|
|
$(INSTALL_HDR_PATH)/include/asm-*/kvm_para.h),)
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += kvm_para.h
|
|
|
|
endif
|
2006-06-18 05:14:01 -06:00
|
|
|
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += acct.h
|
|
|
|
header-y += adb.h
|
|
|
|
header-y += adfs_fs.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += affs_hardblocks.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += agpgart.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += aio_abi.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += apm_bios.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += arcfb.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += atalk.h
|
|
|
|
header-y += atm.h
|
|
|
|
header-y += atm_eni.h
|
|
|
|
header-y += atm_he.h
|
|
|
|
header-y += atm_idt77105.h
|
|
|
|
header-y += atm_nicstar.h
|
|
|
|
header-y += atm_tcp.h
|
|
|
|
header-y += atm_zatm.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += atmapi.h
|
2008-04-29 01:59:28 -06:00
|
|
|
header-y += atmarp.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += atmbr2684.h
|
|
|
|
header-y += atmclip.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += atmdev.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += atmioc.h
|
|
|
|
header-y += atmlec.h
|
|
|
|
header-y += atmmpc.h
|
|
|
|
header-y += atmppp.h
|
|
|
|
header-y += atmsap.h
|
|
|
|
header-y += atmsvc.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += audit.h
|
|
|
|
header-y += auto_fs.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += auto_fs4.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += auxvec.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += ax25.h
|
|
|
|
header-y += b1lli.h
|
|
|
|
header-y += baycom.h
|
|
|
|
header-y += bfs_fs.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += binfmts.h
|
2010-08-05 00:34:13 -06:00
|
|
|
header-y += blk_types.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += blkpg.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += blktrace_api.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += bpqether.h
|
2009-01-19 02:37:38 -07:00
|
|
|
header-y += bsg.h
|
2007-12-27 17:51:46 -07:00
|
|
|
header-y += can.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += capability.h
|
|
|
|
header-y += capi.h
|
2010-02-23 00:38:42 -07:00
|
|
|
header-y += cciss_defs.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += cciss_ioctl.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += cdk.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += cdrom.h
|
|
|
|
header-y += cgroupstats.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += chio.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += cm4000_cs.h
|
|
|
|
header-y += cn_proc.h
|
|
|
|
header-y += coda.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += coda_psdev.h
|
|
|
|
header-y += coff.h
|
|
|
|
header-y += comstats.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += connector.h
|
2007-05-08 01:31:11 -06:00
|
|
|
header-y += const.h
|
2008-04-29 01:59:28 -06:00
|
|
|
header-y += cramfs_fs.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += cuda.h
|
|
|
|
header-y += cyclades.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += cycx_cfm.h
|
2009-02-27 03:01:42 -07:00
|
|
|
header-y += dcbnl.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += dccp.h
|
|
|
|
header-y += dlm.h
|
2006-09-25 10:26:59 -06:00
|
|
|
header-y += dlm_device.h
|
2007-05-18 07:59:31 -06:00
|
|
|
header-y += dlm_netlink.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += dlm_plock.h
|
|
|
|
header-y += dlmconstants.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += dm-ioctl.h
|
2009-06-22 03:12:35 -06:00
|
|
|
header-y += dm-log-userspace.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += dn.h
|
|
|
|
header-y += dqblk_xfs.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += edd.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += efs_fs_sb.h
|
|
|
|
header-y += elf-em.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += elf-fdpic.h
|
|
|
|
header-y += elf.h
|
|
|
|
header-y += elfcore.h
|
|
|
|
header-y += errno.h
|
|
|
|
header-y += errqueue.h
|
|
|
|
header-y += ethtool.h
|
|
|
|
header-y += eventpoll.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += fadvise.h
|
2008-03-04 15:28:53 -07:00
|
|
|
header-y += falloc.h
|
2010-10-28 15:21:56 -06:00
|
|
|
header-y += fanotify.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += fb.h
|
|
|
|
header-y += fcntl.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += fd.h
|
|
|
|
header-y += fdreg.h
|
2006-09-27 23:43:05 -06:00
|
|
|
header-y += fib_rules.h
|
2009-04-02 17:56:44 -06:00
|
|
|
header-y += fiemap.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += filter.h
|
2007-05-31 09:36:23 -06:00
|
|
|
header-y += firewire-cdev.h
|
|
|
|
header-y += firewire-constants.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += flat.h
|
|
|
|
header-y += fs.h
|
2011-06-09 14:52:06 -06:00
|
|
|
header-y += fsl_hypervisor.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += fuse.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += futex.h
|
|
|
|
header-y += gameport.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += gen_stats.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += generic_serial.h
|
|
|
|
header-y += genetlink.h
|
2008-04-29 01:59:28 -06:00
|
|
|
header-y += gfs2_ondisk.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += gigaset_dev.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += hdlc.h
|
|
|
|
header-y += hdlcdrv.h
|
|
|
|
header-y += hdreg.h
|
|
|
|
header-y += hid.h
|
|
|
|
header-y += hiddev.h
|
|
|
|
header-y += hidraw.h
|
|
|
|
header-y += hpet.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += hysdn_if.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += i2c-dev.h
|
|
|
|
header-y += i2c.h
|
2007-12-31 06:58:38 -07:00
|
|
|
header-y += i2o-dev.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += i8k.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += icmp.h
|
|
|
|
header-y += icmpv6.h
|
|
|
|
header-y += if.h
|
|
|
|
header-y += if_addr.h
|
2008-04-29 01:59:28 -06:00
|
|
|
header-y += if_addrlabel.h
|
2010-12-02 22:51:52 -07:00
|
|
|
header-y += if_alg.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += if_arcnet.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += if_arp.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += if_bonding.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += if_bridge.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += if_cablemodem.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += if_eql.h
|
|
|
|
header-y += if_ether.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += if_fc.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += if_fddi.h
|
|
|
|
header-y += if_frad.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += if_hippi.h
|
|
|
|
header-y += if_infiniband.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += if_link.h
|
|
|
|
header-y += if_ltalk.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += if_packet.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += if_phonet.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += if_plip.h
|
|
|
|
header-y += if_ppp.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += if_pppol2tp.h
|
|
|
|
header-y += if_pppox.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += if_slip.h
|
2011-11-11 15:16:48 -07:00
|
|
|
header-y += if_team.h
|
2008-04-12 19:48:58 -06:00
|
|
|
header-y += if_tun.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += if_tunnel.h
|
|
|
|
header-y += if_vlan.h
|
2010-04-22 17:12:36 -06:00
|
|
|
header-y += if_x25.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += igmp.h
|
|
|
|
header-y += in.h
|
|
|
|
header-y += in6.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += in_route.h
|
2011-12-29 17:52:21 -07:00
|
|
|
header-y += sock_diag.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += inet_diag.h
|
2011-12-29 17:52:51 -07:00
|
|
|
header-y += unix_diag.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += inotify.h
|
|
|
|
header-y += input.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += ioctl.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += ip.h
|
2008-04-29 01:59:28 -06:00
|
|
|
header-y += ip6_tunnel.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += ip_vs.h
|
|
|
|
header-y += ipc.h
|
|
|
|
header-y += ipmi.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += ipmi_msgdefs.h
|
|
|
|
header-y += ipsec.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += ipv6.h
|
|
|
|
header-y += ipv6_route.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += ipx.h
|
|
|
|
header-y += irda.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += irqnr.h
|
|
|
|
header-y += isdn.h
|
|
|
|
header-y += isdn_divertif.h
|
|
|
|
header-y += isdn_ppp.h
|
|
|
|
header-y += isdnif.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += iso_fs.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += ivtv.h
|
|
|
|
header-y += ivtvfb.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += ixjuser.h
|
|
|
|
header-y += jffs2.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += joystick.h
|
|
|
|
header-y += kd.h
|
|
|
|
header-y += kdev_t.h
|
|
|
|
header-y += kernel.h
|
|
|
|
header-y += kernelcapi.h
|
2012-05-29 16:06:30 -06:00
|
|
|
header-y += kernel-page-flags.h
|
2012-05-31 17:26:27 -06:00
|
|
|
header-y += kexec.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += keyboard.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += keyctl.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += l2tp.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += limits.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += llc.h
|
|
|
|
header-y += loop.h
|
|
|
|
header-y += lp.h
|
2006-09-24 09:13:19 -06:00
|
|
|
header-y += magic.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += major.h
|
2008-10-10 21:14:14 -06:00
|
|
|
header-y += map_to_7segment.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += matroxfb.h
|
2012-02-29 07:23:27 -07:00
|
|
|
header-y += mdio.h
|
2010-08-18 08:41:22 -06:00
|
|
|
header-y += media.h
|
2012-05-09 07:38:59 -06:00
|
|
|
header-y += mei.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += mempolicy.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += meye.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += mii.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += minix_fs.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += mman.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += mmtimer.h
|
|
|
|
header-y += mqueue.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += mroute.h
|
|
|
|
header-y += mroute6.h
|
|
|
|
header-y += msdos_fs.h
|
|
|
|
header-y += msg.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += mtio.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += n_r3964.h
|
|
|
|
header-y += nbd.h
|
|
|
|
header-y += ncp.h
|
|
|
|
header-y += ncp_fs.h
|
|
|
|
header-y += ncp_mount.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += ncp_no.h
|
2006-09-27 23:43:05 -06:00
|
|
|
header-y += neighbour.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += net.h
|
2009-03-11 03:53:16 -06:00
|
|
|
header-y += net_dropmon.h
|
2009-11-12 02:59:56 -07:00
|
|
|
header-y += net_tstamp.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += netdevice.h
|
|
|
|
header-y += netfilter.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += netfilter_arp.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += netfilter_bridge.h
|
|
|
|
header-y += netfilter_decnet.h
|
|
|
|
header-y += netfilter_ipv4.h
|
|
|
|
header-y += netfilter_ipv6.h
|
|
|
|
header-y += netlink.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += netrom.h
|
2012-05-10 11:45:51 -06:00
|
|
|
header-y += nfc.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += nfs.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += nfs2.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += nfs3.h
|
|
|
|
header-y += nfs4.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += nfs4_mount.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += nfs_fs.h
|
|
|
|
header-y += nfs_idmap.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += nfs_mount.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += nfsacl.h
|
2007-04-23 13:20:05 -06:00
|
|
|
header-y += nl80211.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += nubus.h
|
|
|
|
header-y += nvram.h
|
2011-02-12 14:05:06 -07:00
|
|
|
header-y += omap3isp.h
|
2010-02-23 15:36:25 -07:00
|
|
|
header-y += omapfb.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += oom.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += param.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += parport.h
|
|
|
|
header-y += patchkey.h
|
|
|
|
header-y += pci.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += pci_regs.h
|
2009-10-06 05:38:51 -06:00
|
|
|
header-y += perf_event.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += personality.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += pfkeyv2.h
|
|
|
|
header-y += pg.h
|
2007-05-08 01:31:45 -06:00
|
|
|
header-y += phantom.h
|
2008-09-30 03:53:18 -06:00
|
|
|
header-y += phonet.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += pkt_cls.h
|
|
|
|
header-y += pkt_sched.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += pktcdvd.h
|
|
|
|
header-y += pmu.h
|
|
|
|
header-y += poll.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += posix_types.h
|
|
|
|
header-y += ppdev.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += ppp-comp.h
|
2012-03-04 05:56:04 -07:00
|
|
|
header-y += ppp-ioctl.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += ppp_defs.h
|
|
|
|
header-y += pps.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += prctl.h
|
2011-04-22 04:03:08 -06:00
|
|
|
header-y += ptp_clock.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += ptrace.h
|
2009-06-07 07:47:13 -06:00
|
|
|
header-y += qnx4_fs.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += qnxtypes.h
|
|
|
|
header-y += quota.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += radeonfb.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += random.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += raw.h
|
2010-08-25 10:32:17 -06:00
|
|
|
header-y += rds.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += reboot.h
|
|
|
|
header-y += reiserfs_fs.h
|
|
|
|
header-y += reiserfs_xattr.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += resource.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += rfkill.h
|
2009-04-07 10:07:08 -06:00
|
|
|
header-y += romfs_fs.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += rose.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += route.h
|
|
|
|
header-y += rtc.h
|
|
|
|
header-y += rtnetlink.h
|
|
|
|
header-y += scc.h
|
|
|
|
header-y += sched.h
|
|
|
|
header-y += screen_info.h
|
|
|
|
header-y += sdla.h
|
seccomp: add system call filtering using BPF
[This patch depends on luto@mit.edu's no_new_privs patch:
https://lkml.org/lkml/2012/1/30/264
The whole series including Andrew's patches can be found here:
https://github.com/redpig/linux/tree/seccomp
Complete diff here:
https://github.com/redpig/linux/compare/1dc65fed...seccomp
]
This patch adds support for seccomp mode 2. Mode 2 introduces the
ability for unprivileged processes to install system call filtering
policy expressed in terms of a Berkeley Packet Filter (BPF) program.
This program will be evaluated in the kernel for each system call
the task makes and computes a result based on data in the format
of struct seccomp_data.
A filter program may be installed by calling:
struct sock_fprog fprog = { ... };
...
prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &fprog);
The return value of the filter program determines if the system call is
allowed to proceed or denied. If the first filter program installed
allows prctl(2) calls, then the above call may be made repeatedly
by a task to further reduce its access to the kernel. All attached
programs must be evaluated before a system call will be allowed to
proceed.
Filter programs will be inherited across fork/clone and execve.
However, if the task attaching the filter is unprivileged
(!CAP_SYS_ADMIN) the no_new_privs bit will be set on the task. This
ensures that unprivileged tasks cannot attach filters that affect
privileged tasks (e.g., setuid binary).
There are a number of benefits to this approach. A few of which are
as follows:
- BPF has been exposed to userland for a long time
- BPF optimization (and JIT'ing) are well understood
- Userland already knows its ABI: system call numbers and desired
arguments
- No time-of-check-time-of-use vulnerable data accesses are possible.
- system call arguments are loaded on access only to minimize copying
required for system call policy decisions.
Mode 2 support is restricted to architectures that enable
HAVE_ARCH_SECCOMP_FILTER. In this patch, the primary dependency is on
syscall_get_arguments(). The full desired scope of this feature will
add a few minor additional requirements expressed later in this series.
Based on discussion, SECCOMP_RET_ERRNO and SECCOMP_RET_TRACE seem to be
the desired additional functionality.
No architectures are enabled in this patch.
Signed-off-by: Will Drewry <wad@chromium.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Reviewed-by: Indan Zupancic <indan@nul.nu>
Acked-by: Eric Paris <eparis@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
v18: - rebase to v3.4-rc2
- s/chk/check/ (akpm@linux-foundation.org,jmorris@namei.org)
- allocate with GFP_KERNEL|__GFP_NOWARN (indan@nul.nu)
- add a comment for get_u32 regarding endianness (akpm@)
- fix other typos, style mistakes (akpm@)
- added acked-by
v17: - properly guard seccomp filter needed headers (leann@ubuntu.com)
- tighten return mask to 0x7fff0000
v16: - no change
v15: - add a 4 instr penalty when counting a path to account for seccomp_filter
size (indan@nul.nu)
- drop the max insns to 256KB (indan@nul.nu)
- return ENOMEM if the max insns limit has been hit (indan@nul.nu)
- move IP checks after args (indan@nul.nu)
- drop !user_filter check (indan@nul.nu)
- only allow explicit bpf codes (indan@nul.nu)
- exit_code -> exit_sig
v14: - put/get_seccomp_filter takes struct task_struct
(indan@nul.nu,keescook@chromium.org)
- adds seccomp_chk_filter and drops general bpf_run/chk_filter user
- add seccomp_bpf_load for use by net/core/filter.c
- lower max per-process/per-hierarchy: 1MB
- moved nnp/capability check prior to allocation
(all of the above: indan@nul.nu)
v13: - rebase on to 88ebdda6159ffc15699f204c33feb3e431bf9bdc
v12: - added a maximum instruction count per path (indan@nul.nu,oleg@redhat.com)
- removed copy_seccomp (keescook@chromium.org,indan@nul.nu)
- reworded the prctl_set_seccomp comment (indan@nul.nu)
v11: - reorder struct seccomp_data to allow future args expansion (hpa@zytor.com)
- style clean up, @compat dropped, compat_sock_fprog32 (indan@nul.nu)
- do_exit(SIGSYS) (keescook@chromium.org, luto@mit.edu)
- pare down Kconfig doc reference.
- extra comment clean up
v10: - seccomp_data has changed again to be more aesthetically pleasing
(hpa@zytor.com)
- calling convention is noted in a new u32 field using syscall_get_arch.
This allows for cross-calling convention tasks to use seccomp filters.
(hpa@zytor.com)
- lots of clean up (thanks, Indan!)
v9: - n/a
v8: - use bpf_chk_filter, bpf_run_filter. update load_fns
- Lots of fixes courtesy of indan@nul.nu:
-- fix up load behavior, compat fixups, and merge alloc code,
-- renamed pc and dropped __packed, use bool compat.
-- Added a hidden CONFIG_SECCOMP_FILTER to synthesize non-arch
dependencies
v7: (massive overhaul thanks to Indan, others)
- added CONFIG_HAVE_ARCH_SECCOMP_FILTER
- merged into seccomp.c
- minimal seccomp_filter.h
- no config option (part of seccomp)
- no new prctl
- doesn't break seccomp on systems without asm/syscall.h
(works but arg access always fails)
- dropped seccomp_init_task, extra free functions, ...
- dropped the no-asm/syscall.h code paths
- merges with network sk_run_filter and sk_chk_filter
v6: - fix memory leak on attach compat check failure
- require no_new_privs || CAP_SYS_ADMIN prior to filter
installation. (luto@mit.edu)
- s/seccomp_struct_/seccomp_/ for macros/functions (amwang@redhat.com)
- cleaned up Kconfig (amwang@redhat.com)
- on block, note if the call was compat (so the # means something)
v5: - uses syscall_get_arguments
(indan@nul.nu,oleg@redhat.com, mcgrathr@chromium.org)
- uses union-based arg storage with hi/lo struct to
handle endianness. Compromises between the two alternate
proposals to minimize extra arg shuffling and account for
endianness assuming userspace uses offsetof().
(mcgrathr@chromium.org, indan@nul.nu)
- update Kconfig description
- add include/seccomp_filter.h and add its installation
- (naive) on-demand syscall argument loading
- drop seccomp_t (eparis@redhat.com)
v4: - adjusted prctl to make room for PR_[SG]ET_NO_NEW_PRIVS
- now uses current->no_new_privs
(luto@mit.edu,torvalds@linux-foundation.com)
- assign names to seccomp modes (rdunlap@xenotime.net)
- fix style issues (rdunlap@xenotime.net)
- reworded Kconfig entry (rdunlap@xenotime.net)
v3: - macros to inline (oleg@redhat.com)
- init_task behavior fixed (oleg@redhat.com)
- drop creator entry and extra NULL check (oleg@redhat.com)
- alloc returns -EINVAL on bad sizing (serge.hallyn@canonical.com)
- adds tentative use of "always_unprivileged" as per
torvalds@linux-foundation.org and luto@mit.edu
v2: - (patch 2 only)
Signed-off-by: James Morris <james.l.morris@oracle.com>
2012-04-12 15:47:57 -06:00
|
|
|
header-y += seccomp.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += securebits.h
|
|
|
|
header-y += selinux_netlink.h
|
|
|
|
header-y += sem.h
|
|
|
|
header-y += serial.h
|
|
|
|
header-y += serial_core.h
|
2007-07-31 01:38:52 -06:00
|
|
|
header-y += serial_reg.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += serio.h
|
|
|
|
header-y += shm.h
|
|
|
|
header-y += signal.h
|
|
|
|
header-y += signalfd.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += snmp.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += socket.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += sockios.h
|
|
|
|
header-y += som.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += sonet.h
|
|
|
|
header-y += sonypi.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += sound.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += soundcard.h
|
|
|
|
header-y += stat.h
|
|
|
|
header-y += stddef.h
|
|
|
|
header-y += string.h
|
2007-10-25 17:05:05 -06:00
|
|
|
header-y += suspend_ioctls.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += swab.h
|
|
|
|
header-y += synclink.h
|
|
|
|
header-y += sysctl.h
|
2012-02-06 17:36:48 -07:00
|
|
|
header-y += sysinfo.h
|
2007-05-08 01:31:49 -06:00
|
|
|
header-y += taskstats.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += tcp.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += telephony.h
|
|
|
|
header-y += termios.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += time.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += times.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += timex.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += tiocl.h
|
|
|
|
header-y += tipc.h
|
2007-10-30 02:19:19 -06:00
|
|
|
header-y += tipc_config.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += toshiba.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += tty.h
|
|
|
|
header-y += types.h
|
2008-02-22 04:39:12 -07:00
|
|
|
header-y += udf_fs_i.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += udp.h
|
2012-06-10 07:16:14 -06:00
|
|
|
header-y += uhid.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += uinput.h
|
|
|
|
header-y += uio.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += ultrasound.h
|
|
|
|
header-y += un.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += unistd.h
|
|
|
|
header-y += usbdevice_fs.h
|
2006-09-19 05:43:58 -06:00
|
|
|
header-y += utime.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += utsname.h
|
2012-05-09 07:38:58 -06:00
|
|
|
header-y += uuid.h
|
2010-11-21 13:15:44 -07:00
|
|
|
header-y += uvcvideo.h
|
2012-07-09 03:10:26 -06:00
|
|
|
header-y += v4l2-common.h
|
2012-05-09 00:37:07 -06:00
|
|
|
header-y += v4l2-dv-timings.h
|
2010-03-15 16:33:31 -06:00
|
|
|
header-y += v4l2-mediabus.h
|
2010-03-15 17:26:04 -06:00
|
|
|
header-y += v4l2-subdev.h
|
2007-12-25 18:23:59 -07:00
|
|
|
header-y += veth.h
|
2012-08-07 11:48:33 -06:00
|
|
|
header-y += vfio.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += vhost.h
|
|
|
|
header-y += videodev2.h
|
|
|
|
header-y += virtio_9p.h
|
|
|
|
header-y += virtio_balloon.h
|
|
|
|
header-y += virtio_blk.h
|
|
|
|
header-y += virtio_config.h
|
|
|
|
header-y += virtio_console.h
|
|
|
|
header-y += virtio_ids.h
|
|
|
|
header-y += virtio_net.h
|
|
|
|
header-y += virtio_pci.h
|
|
|
|
header-y += virtio_ring.h
|
|
|
|
header-y += virtio_rng.h
|
|
|
|
header-y += vt.h
|
|
|
|
header-y += wait.h
|
|
|
|
header-y += wanrouter.h
|
|
|
|
header-y += watchdog.h
|
2008-12-20 17:57:59 -07:00
|
|
|
header-y += wimax.h
|
2010-08-14 02:15:12 -06:00
|
|
|
header-y += wireless.h
|
|
|
|
header-y += x25.h
|
|
|
|
header-y += xattr.h
|
|
|
|
header-y += xfrm.h
|