apparmorfs.c (57e04eeda515ee979fec3bc3d64c408feae18acc) | apparmorfs.c (8c62ed27a12c00e3db1c9f04bc0f272bdbb06734) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * AppArmor security module 4 * 5 * This file contains AppArmor /sys/kernel/security/apparmor interface functions 6 * 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. --- 609 unchanged lines hidden (view full) --- 618 mutex_unlock(&rev->ns->lock); 619 } 620 621 return mask; 622} 623 624void __aa_bump_ns_revision(struct aa_ns *ns) 625{ | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * AppArmor security module 4 * 5 * This file contains AppArmor /sys/kernel/security/apparmor interface functions 6 * 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. --- 609 unchanged lines hidden (view full) --- 618 mutex_unlock(&rev->ns->lock); 619 } 620 621 return mask; 622} 623 624void __aa_bump_ns_revision(struct aa_ns *ns) 625{ |
626 ns->revision++; | 626 WRITE_ONCE(ns->revision, ns->revision + 1); |
627 wake_up_interruptible(&ns->wait); 628} 629 630static const struct file_operations aa_fs_ns_revision_fops = { 631 .owner = THIS_MODULE, 632 .open = ns_revision_open, 633 .poll = ns_revision_poll, 634 .read = ns_revision_read, --- 2063 unchanged lines hidden --- | 627 wake_up_interruptible(&ns->wait); 628} 629 630static const struct file_operations aa_fs_ns_revision_fops = { 631 .owner = THIS_MODULE, 632 .open = ns_revision_open, 633 .poll = ns_revision_poll, 634 .read = ns_revision_read, --- 2063 unchanged lines hidden --- |