[BACK]Return to netif.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / security / selinux / include

File: [Development] / linux-2.6-xfs / security / selinux / include / netif.h (download)

Revision 1.1, Thu Jan 29 19:23:16 2004 UTC (13 years, 8 months ago) by nathans
Branch: MAIN

Merge up to 2.6.2-rc2

/*
 * Network interface table.
 *
 * Network interfaces (devices) do not have a security field, so we
 * maintain a table associating each interface with a SID.
 *
 * Author: James Morris <jmorris@redhat.com>
 *
 * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2,
 * as published by the Free Software Foundation.
 */
#ifndef _SELINUX_NETIF_H_
#define _SELINUX_NETIF_H_

struct sel_netif
{
	struct list_head list;
	atomic_t users;
	struct netif_security_struct nsec;
	struct rcu_head rcu_head;
};

struct sel_netif *sel_netif_lookup(struct net_device *dev);
void sel_netif_put(struct sel_netif *netif);

#endif	/* _SELINUX_NETIF_H_ */