Skip to content

Instantly share code, notes, and snippets.

0x95D0bCEE282d8b5e5aA37fc8b79a9Cad1a7BfA70
*** contrib/mod_proxy/mod_proxy.c.orig Thu Mar 15 11:17:32 2018
--- contrib/mod_proxy/mod_proxy.c Thu Mar 15 11:18:52 2018
*************** static int proxy_rmpath(pool *p, const c
*** 409,414 ****
--- 409,423 ----
"error removing directory '%s': %s", file, strerror(errno));
}
+ // removing directories here, as the top-level dir (specifed by ProxyTables) shall remain intact
+ res = rmdir(file);
ServerName "fqdn"
ServerType standalone
ServerIdent off
DefaultServer on
AllowForeignAddress on
UseReverseDNS off
[pid 19839] newfstatat(AT_FDCWD, "/tmp/osconfig_software_recipes/recipe-runscript/run_1596719978345851872/step00", 0xc0001ad148, 0) = -1 ENOENT (No such file or directory)
[pid 19839] newfstatat(AT_FDCWD, "/tmp/osconfig_software_recipes/recipe-runscript/run_1596719978345851872", {st_mode=S_IFDIR|0755, st_size=4096, …}, 0) = 0
[pid 19838] <… nanosleep resumed> NULL) = 0
[pid 19839] mkdirat(AT_FDCWD, "/tmp/osconfig_software_recipes/recipe-runscript/run_1596719978345851872/step00", 0755 <unfinished …>
[pid 19839] openat(AT_FDCWD, "/tmp/osconfig_software_recipes/recipe-runscript/run_1596719978345851872/step00/recipe_script_source", O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0666 <unfinished …>
[pid 19838] nanosleep({tv_sec=0, tv_nsec=1280000}, <unfinished …>
[pid 19839] <… openat resumed> ) = 10
[pid 19839] epoll_ctl(4, EPOLL_CTL_ADD, 10, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=4264073768, u64=140024492890664}}) = -1 EPERM (Operation not permitted)
[pid 19839] epoll_ctl(4, EPOLL_CTL_DEL, 10, 0xc00002d7cc) = -1 EPERM
assignment:
instanceNamePrefixes:
- "test-"
recipes:
- name: recipe-runscript
desiredState: INSTALLED
installSteps:
- scriptRun:
script: |-
Event(wd=1, mask=1073742080, cookie=0, name='recipe-runscript2')
New recipe: recipe-runscript2, rename: /tmp/osconfig_software_recipes.mali1596821311/xxx-recipe-name -> /tmp/osconfig_software_recipes.mali1596821311/recipe-runscript2
New rundir recipe-runscript2, rename: /tmp/osconfig_software_recipes.mali1596821311/recipe-runscript2/xxx-rundir -> /tmp/osconfig_software_recipes.mali1596821311/recipe-runscript2/run_1596821899000709826
# cat /tmp/poc.txt
uid=0(root) gid=0(root) groups=0(root),1000(google-sudoers)
@irsl
irsl / gist:fa08efbaacce958ff70e1f6be1cf3d08
Created February 16, 2021 22:10
unrestricted google cloud sql database flags
gcloud sql flags list
{
"kind": "sql#flagsList",
"items": [
{
"name": "character_set_server",
"type": "STRING",
"appliesTo": [
"MYSQL_5_5",
"MYSQL_5_6",
@irsl
irsl / gist:f3e9d082eeccc7a088ca5af4d8f0b169
Created February 16, 2021 22:13
google cloud sql unrestricted database flags
"name": "init_connect",
"type": "STRING",
"appliesTo": [
"MYSQL_5_6",
"MYSQL_5_7",
"MYSQL_8_0"
],
"requiresRestart": false,
@irsl
irsl / gist:0c1304d5aca442bb79da0435308f0c9c
Created February 16, 2021 22:14
google postgres permissions
postgres=> \du
List of roles
Role name | Attributes | Member of
---------------------------+------------------------------------------------------------+-----------------------------------------------------
cloudsqladmin | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
cloudsqlagent | Create role, Create DB | {cloudsqlsuperuser}
cloudsqliamserviceaccount | Cannot login | {}
cloudsqliamuser | Cannot login | {}
cloudsqlimportexport | Create role, Create DB | {cloudsqlsuperuser}
cloudsqlreplica | Replication | {}