audit_pipe.c (f6d4a8a77bbb032448b9331f308b4466d4e3b1cd) | audit_pipe.c (d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b) |
---|---|
1/*- 2 * Copyright (c) 2006 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 602 unchanged lines hidden (view full) --- 611 612 if (strcmp(name, AUDIT_PIPE_NAME) == 0) 613 u = -1; 614 else if (dev_stdclone(name, NULL, AUDIT_PIPE_NAME, &u) != 1) 615 return; 616 617 i = clone_create(&audit_pipe_clones, &audit_pipe_cdevsw, &u, dev, 0); 618 if (i) { | 1/*- 2 * Copyright (c) 2006 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 602 unchanged lines hidden (view full) --- 611 612 if (strcmp(name, AUDIT_PIPE_NAME) == 0) 613 u = -1; 614 else if (dev_stdclone(name, NULL, AUDIT_PIPE_NAME, &u) != 1) 615 return; 616 617 i = clone_create(&audit_pipe_clones, &audit_pipe_cdevsw, &u, dev, 0); 618 if (i) { |
619 *dev = make_dev(&audit_pipe_cdevsw, unit2minor(u), UID_ROOT, | 619 *dev = make_dev(&audit_pipe_cdevsw, u, UID_ROOT, |
620 GID_WHEEL, 0600, "%s%d", AUDIT_PIPE_NAME, u); 621 if (*dev != NULL) { 622 dev_ref(*dev); 623 (*dev)->si_flags |= SI_CHEAPCLONE; 624 } 625 } 626} 627 --- 430 unchanged lines hidden --- | 620 GID_WHEEL, 0600, "%s%d", AUDIT_PIPE_NAME, u); 621 if (*dev != NULL) { 622 dev_ref(*dev); 623 (*dev)->si_flags |= SI_CHEAPCLONE; 624 } 625 } 626} 627 --- 430 unchanged lines hidden --- |