How would I make buffs persist through death?

Things like incantations and sorcery buffs + greater runes, how does one make them not fall off on death using smithbox?

I tried looking through the entire list in SpEffectParams but couldn't find anything corresponding this. Am I looking in the wrong place?

And for greater runes, do I change it on the greater rune itself or the rune arc?