Skip to content

Commit 861f4bc

Browse files
Tetsuo HandaJames Morris
authored andcommitted
tomoyo: Bump version.
Update URLs and profile version. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <james.morris@microsoft.com>
1 parent e7a44cf commit 861f4bc

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

‎MAINTAINERS‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15380,12 +15380,11 @@ F: mm/shmem.c
1538015380
TOMOYO SECURITY MODULE
1538115381
M: Kentaro Takeda <takedakn@nttdata.co.jp>
1538215382
M: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
15383-
L: tomoyo-dev-en@lists.sourceforge.jp (subscribers-only, for developers in English)
15384-
L: tomoyo-users-en@lists.sourceforge.jp (subscribers-only, for users in English)
15385-
L: tomoyo-dev@lists.sourceforge.jp (subscribers-only, for developers in Japanese)
15386-
L: tomoyo-users@lists.sourceforge.jp (subscribers-only, for users in Japanese)
15387-
W: http://tomoyo.sourceforge.jp/
15388-
T: quilt http://svn.sourceforge.jp/svnroot/tomoyo/trunk/2.5.x/tomoyo-lsm/patches/
15383+
L: tomoyo-dev-en@lists.osdn.me (subscribers-only, for developers in English)
15384+
L: tomoyo-users-en@lists.osdn.me (subscribers-only, for users in English)
15385+
L: tomoyo-dev@lists.osdn.me (subscribers-only, for developers in Japanese)
15386+
L: tomoyo-users@lists.osdn.me (subscribers-only, for users in Japanese)
15387+
W: https://tomoyo.osdn.jp/
1538915388
S: Maintained
1539015389
F: security/tomoyo/
1539115390

‎security/tomoyo/common.c‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void tomoyo_init_policy_namespace(struct tomoyo_policy_namespace *ns)
354354
INIT_LIST_HEAD(&ns->group_list[idx]);
355355
for (idx = 0; idx < TOMOYO_MAX_POLICY; idx++)
356356
INIT_LIST_HEAD(&ns->policy_list[idx]);
357-
ns->profile_version = 20110903;
357+
ns->profile_version = 20150505;
358358
tomoyo_namespace_enabled = !list_empty(&tomoyo_namespace_list);
359359
list_add_tail_rcu(&ns->namespace_list, &tomoyo_namespace_list);
360360
}
@@ -2300,7 +2300,7 @@ static int tomoyo_write_answer(struct tomoyo_io_buffer *head)
23002300
static void tomoyo_read_version(struct tomoyo_io_buffer *head)
23012301
{
23022302
if (!head->r.eof) {
2303-
tomoyo_io_printf(head, "2.5.0");
2303+
tomoyo_io_printf(head, "2.6.0");
23042304
head->r.eof = true;
23052305
}
23062306
}
@@ -2777,21 +2777,26 @@ void tomoyo_check_profile(void)
27772777
const int idx = tomoyo_read_lock();
27782778

27792779
tomoyo_policy_loaded = true;
2780-
pr_info("TOMOYO: 2.5.0\n");
2780+
pr_info("TOMOYO: 2.6.0\n");
27812781
list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) {
27822782
const u8 profile = domain->profile;
2783-
const struct tomoyo_policy_namespace *ns = domain->ns;
2783+
struct tomoyo_policy_namespace *ns = domain->ns;
27842784

2785-
if (ns->profile_version != 20110903)
2785+
if (ns->profile_version == 20110903) {
2786+
pr_info_once("Converting profile version from %u to %u.\n",
2787+
20110903, 20150505);
2788+
ns->profile_version = 20150505;
2789+
}
2790+
if (ns->profile_version != 20150505)
27862791
pr_err("Profile version %u is not supported.\n",
27872792
ns->profile_version);
27882793
else if (!ns->profile_ptr[profile])
27892794
pr_err("Profile %u (used by '%s') is not defined.\n",
27902795
profile, domain->domainname->name);
27912796
else
27922797
continue;
2793-
pr_err("Userland tools for TOMOYO 2.5 must be installed and policy must be initialized.\n");
2794-
pr_err("Please see http://tomoyo.sourceforge.jp/2.5/ for more information.\n");
2798+
pr_err("Userland tools for TOMOYO 2.6 must be installed and policy must be initialized.\n");
2799+
pr_err("Please see https://tomoyo.osdn.jp/2.6/ for more information.\n");
27952800
panic("STOP!");
27962801
}
27972802
tomoyo_read_unlock(idx);

‎security/tomoyo/common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ struct tomoyo_policy_namespace {
910910
struct list_head acl_group[TOMOYO_MAX_ACL_GROUPS];
911911
/* List for connecting to tomoyo_namespace_list list. */
912912
struct list_head namespace_list;
913-
/* Profile version. Currently only 20110903 is defined. */
913+
/* Profile version. Currently only 20150505 is defined. */
914914
unsigned int profile_version;
915915
/* Name of this namespace (e.g. "<kernel>", "</usr/sbin/httpd>" ). */
916916
const char *name;

0 commit comments

Comments
 (0)