This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "su-common.h" | |
int main(int argc, char **argv) | |
{ | |
return su_main(argc, argv, SU_MODE); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* su for Linux. Run a shell with substitute user and group IDs. | |
Copyright (C) 1992-2006 Free Software Foundation, Inc. | |
Copyright (C) 2012 SUSE Linux Products GmbH, Nuernberg | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2, or (at your option) | |
any later version. | |
This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Returns 1 if the current user is not root | |
*/ | |
static int | |
evaluate_uid(void) | |
{ | |
uid_t ruid = getuid(); | |
uid_t euid = geteuid(); | |
/* if we're really root and aren't running setuid */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SYSCALL_DEFINE0(getuid) | |
{ | |
/* Only we change this so SMP safe */ | |
return from_kuid_munged(current_user_ns(), current_uid()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* current_cred - Access the current task's subjective credentials | |
* | |
* Access the subjective credentials of the current task. RCU-safe, | |
* since nobody else can modify it. | |
*/ | |
#define current_cred() \ | |
rcu_dereference_protected(current->cred, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The security context of a task | |
* | |
* The parts of the context break down into two categories: | |
* | |
* (1) The objective context of a task. These parts are used when some other | |
* task is attempting to affect this one. | |
* | |
* (2) The subjective context. These details are used when the task is acting | |
* upon another object, be that a file, a task, a key or whatever. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static u32 map_id_up(struct uid_gid_map *map, u32 id) | |
{ | |
unsigned idx, extents; | |
u32 first, last; | |
/* Find the matching extent */ | |
extents = map->nr_extents; | |
smp_read_barrier_depends(); | |
for (idx = 0; idx < extents; idx++) { | |
first = map->extent[idx].lower_first; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kancolle.rb b/kancolle.rb | |
index c1d892f..16f64d2 100644 | |
--- a/kancolle.rb | |
+++ b/kancolle.rb | |
@@ -11,9 +11,9 @@ Plugin.create(:kancolle) do | |
nativewidget view.show_all | |
end | |
- filter_web_image_loader_url_filter do |url| | |
- if url.include? 'toshia.dip.jp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/mui/cairo_miracle_painter.rb b/core/mui/cairo_miracle_painter.rb | |
index 9a078ae..87663e9 100644 | |
--- a/core/mui/cairo_miracle_painter.rb | |
+++ b/core/mui/cairo_miracle_painter.rb | |
@@ -347,10 +347,16 @@ class Gdk::MiraclePainter < Gtk::Object | |
# アイコンのpixbufを返す | |
def main_icon | |
- @main_icon ||= Gdk::WebImageLoader.pixbuf(message[:user][:profile_image_url], icon_width, icon_height){ |pixbuf| | |
+ if message.user.idname == 'toshi_a' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn fib( n:int ) -> int { | |
match n { | |
0 => 0, | |
1 => 1, | |
n => fib(n-1) + fib(n-2) | |
} | |
} | |
fn main() { | |